This commit is contained in:
2023-02-27 21:29:14 +00:00
parent 3482a29ed4
commit ce1eb1d0e0
23 changed files with 452 additions and 332 deletions

View File

@@ -28,7 +28,14 @@
vscode-server.url = "github:msteen/nixos-vscode-server";
# homeage = {url = "github:jordanisaacs/homeage"; inputs.nixpkgs.follows = "nixpkgs";};
# Nix Library Functions
# library = {
# type = "github";
# owner = "nix-community";
# repo = "nixpkgs.lib";
# ref = "master";
# rev = "af5239f892ae6e1c8bb560b11ed874cebbd10696";
# };
};
@@ -44,23 +51,31 @@
overlays = import ./overlays { inherit inputs; };
nixosModules = import ./modules/nixos;
homeManagerModules = import ./modules/home-manager;
# util = import ./lib/map.nix;
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
Go3 = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/wsl2
./hosts/WSL/Go3
];
};
StuPC = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [
./hosts/WSL/StuPC
];
};
};
# Standalone home-manager configuration entrypoint
# Available through 'home-manager --flake .#your-username@your-hostname'
homeConfigurations = {
# FIXME replace with your username@hostname
"sstent@nixos" = home-manager.lib.homeManagerConfiguration {
"sstent@Go3" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs; };
modules = [
@@ -69,6 +84,16 @@
inputs.sops-nix.homeManagerModules.sops
];
};
"sstent@StuPC" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
extraSpecialArgs = { inherit inputs outputs; hostName = "StuPC";};
modules = [
# > Our main home-manager configuration file <
./home-manager/users/sstent
inputs.sops-nix.homeManagerModules.sops
];
};
};
};
}