new flake

This commit is contained in:
2023-11-29 19:49:09 +00:00
parent 9567d75cb8
commit ca61daf085
11 changed files with 171 additions and 752 deletions

44
hosts/default.nix Normal file
View File

@@ -0,0 +1,44 @@
{ system, self, nixpkgs, inputs, ... }:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true; # Allow proprietary software
};
lib = nixpkgs.lib;
in
{
StuPC-WSL = lib.nixosSystem {
# Laptop profile
inherit system;
specialArgs = { inherit inputs; };
modules = [
#../home-manager #hyprland and sway,go to this dir,choose one
] ++ [
./common.nix
] ++ [
inputs.home-manager.nixosModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
# extraSpecialArgs = { inherit user; };
users.sstent = {
imports = [
(import ../home-manager)
] ++ [
];
};
};
nixpkgs = {
overlays =
[
self.overlays.default
];
};
}
];
};
}