paving way for nixoswalrus

This commit is contained in:
2025-03-07 14:58:00 +00:00
parent e8db8fdc92
commit 9a7f73afb2
3 changed files with 41 additions and 2 deletions

View File

@@ -10,6 +10,7 @@
# nixpkgs-23-11.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-24-05.url = "github:NixOS/nixpkgs/nixos-24.05";
# nixpkgs-24-11.url = "github:NixOS/nixpkgs/nixos-24.11";
# only use this for Maxos, prefer specifying version explicitly
homeManager = {
@@ -22,6 +23,11 @@
inputs.nixpkgs.follows = "nixpkgs-24-05";
};
# homeManager-24-11 = {
# url = "github:nix-community/home-manager/release-24.11";
# inputs.nixpkgs.follows = "nixpkgs-24-11";
# };
NixOS-WSL-2405 = {
url = "github:nix-community/NixOS-WSL";

View File

@@ -1,4 +1,4 @@
{ pkgs, customPackageOverlay, modulesPath, hostname, ... }:
{ pkgs, customPackageOverlay, stateVersion, modulesPath, hostname, ... }:
let
custom-fonts = import ../fonts { inherit pkgs; };
@@ -39,7 +39,7 @@ in
customPackageOverlay
];
system.stateVersion = "22.05";
system.stateVersion = stateVersion;
# Define a user account. Don't forget to set a password with passwd.
users.users.deepak = {

View File

@@ -25,13 +25,45 @@ in
}
];
};
"nixosWalrus" = nixpkgs-24-05.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit customPackageOverlay;
inherit nixpkgs-unstable;
hostname = "nixosWalrus";
stateVersion = "24.11";
};
modules = [
./commonWSL-configuration.nix
inputs.sops-nix.nixosModules.sops
homeManager-24-05.nixosModules.home-manager {
home-manager.extraSpecialArgs = {
withGUI = false;
gitSigningKey = "8F904A3FC7021497";
inherit nixpkgs-unstable;
};
home-manager.useGlobalPkgs = true;
home-manager.users.deepak = {
imports = [
../home/deepak/home.nix
];
};
home-manager.sharedModules = [
inputs.sops-nix.homeManagerModules.sops
];
}
NixOS-WSL-2405.nixosModules.wsl
];
};
"nixosWSL" = nixpkgs-24-05.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit customPackageOverlay;
inherit nixpkgs-unstable;
hostname = "nixosWSL";
stateVersion = "22.05";
};
modules = [
./commonWSL-configuration.nix
@@ -63,6 +95,7 @@ in
inherit customPackageOverlay;
inherit nixpkgs-unstable;
hostname = "nixosEggYoke";
stateVersion = "22.05";
};
modules = [
./commonWSL-configuration.nix