mirror of
https://github.com/sstent/vmimages.git
synced 2026-02-06 12:32:54 +00:00
new flake
This commit is contained in:
44
hosts/default.nix
Normal file
44
hosts/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user