mirror of
https://github.com/sstent/vmimages.git
synced 2026-01-26 07:02:03 +00:00
44 lines
908 B
Nix
44 lines
908 B
Nix
{ 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
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
} |