migrate skinny to flakes

This commit is contained in:
Cyryl Płotnicki 2021-05-30 23:44:57 +01:00
parent e88a84f237
commit f2bd00ae70
2 changed files with 15 additions and 11 deletions

View file

@ -58,6 +58,21 @@
]; ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
}; };
skinnyv = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./nixos/boxes/skinnyv)
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.cyryl = import ./nixos/home-manager;
}
];
specialArgs = { inherit inputs; };
};
}; };
}; };
} }

View file

@ -3,7 +3,6 @@
networking.hostName = "skinnyv"; networking.hostName = "skinnyv";
imports = [ imports = [
<home-manager/nixos>
./hardware-configuration.nix ./hardware-configuration.nix
../../boot.nix ../../boot.nix
../../common.nix ../../common.nix
@ -22,14 +21,4 @@
time.timeZone = "Europe/London"; time.timeZone = "Europe/London";
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;
home-manager.users.cyryl = {...}: {
imports = [
../../home-manager
];
home.stateVersion = config.system.stateVersion;
nixpkgs.overlays = config.nixpkgs.overlays;
nixpkgs.config = config.nixpkgs.config;
};
} }