Move all logic from nixos-anywhere to main flake
It should now be possible to nixos-anywhere without the custom directory. Still testing that works though.
This commit is contained in:
parent
0ac27f8b99
commit
d0df5172d3
3 changed files with 9 additions and 17 deletions
|
|
@ -25,6 +25,7 @@
|
|||
repo = "nidus-sync";
|
||||
rev = "b31ca6c83ed96dbb1d15c94bcf57cfdb07a11b5a";
|
||||
};
|
||||
nixos-facter-modules.url = "github:numtide/nixos-facter-modules";
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
|
||||
nixvim = {
|
||||
url = "github:nix-community/nixvim/nixos-25.05";
|
||||
|
|
@ -37,12 +38,12 @@
|
|||
outputs = inputs@{ self, disko, home-manager, nixpkgs, nixvim, sops-nix, timecard-bot, ...}:
|
||||
let
|
||||
configFiles = pkgs.stdenv.mkDerivation {
|
||||
name = "config-files";
|
||||
src = ./configs;
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -r * $out/
|
||||
'';
|
||||
name = "config-files";
|
||||
src = ./configs;
|
||||
};
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
system = "x86_64-linux";
|
||||
|
|
|
|||
|
|
@ -61,22 +61,11 @@
|
|||
type = "lvm_vg";
|
||||
lvs = {
|
||||
root = {
|
||||
size = "50G";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
};
|
||||
};
|
||||
var = {
|
||||
size = "100%FREE";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/var";
|
||||
mountpoint = "/";
|
||||
mountOptions = [
|
||||
"defaults"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -11,11 +11,13 @@
|
|||
};
|
||||
domain = "gleipnir.technology";
|
||||
firewall = {
|
||||
enable = true;
|
||||
interfaces.enp3s0 = {
|
||||
allowedUDPPorts = [ 22 80 443 7000 16652 ];
|
||||
allowedTCPPorts = [ 22 80 443 7000 16652 ];
|
||||
enable = false;
|
||||
/*interfaces.enp3s0 = {
|
||||
allowedUDPPorts = [ 22 80 443 7000 16652 ];
|
||||
allowedTCPPorts = [ 22 80 443 7000 16652 ];
|
||||
};
|
||||
};*/
|
||||
};
|
||||
hostName = "nocix-amd-legacy-sexcore";
|
||||
interfaces.enp3s0 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue