theoretical iso
This commit is contained in:
parent
1a047c2740
commit
a8da028c92
3 changed files with 59 additions and 10 deletions
|
@ -2,6 +2,7 @@ input@{ wm ? null, ...}:
|
||||||
with builtins;
|
with builtins;
|
||||||
input //
|
input //
|
||||||
rec {
|
rec {
|
||||||
|
# should probably split plasma into plasma-x11 and plasma-wayland at some point
|
||||||
x11-wms = ["plasma" "xmonad" "i3"];
|
x11-wms = ["plasma" "xmonad" "i3"];
|
||||||
wayland-wms = ["hyprland" "sway"];
|
wayland-wms = ["hyprland" "sway"];
|
||||||
wms = x11-wms ++ wayland-wms;
|
wms = x11-wms ++ wayland-wms;
|
||||||
|
|
37
flake.lock
37
flake.lock
|
@ -38,6 +38,42 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixlib": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1689469483,
|
||||||
|
"narHash": "sha256-2SBhY7rZQ/iNCxe04Eqxlz9YK9KgbaTMBssq3/BgdWY=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"rev": "02fea408f27186f139153e1ae88f8ab2abd9c22c",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixpkgs.lib",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixos-generators": {
|
||||||
|
"inputs": {
|
||||||
|
"nixlib": "nixlib",
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1690133435,
|
||||||
|
"narHash": "sha256-YNZiefETggroaTLsLJG2M+wpF0pJPwiauKG4q48ddNU=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-generators",
|
||||||
|
"rev": "b1171de4d362c022130c92d7c8adc4bf2b83d586",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "nixos-generators",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1692067901,
|
"lastModified": 1692067901,
|
||||||
|
@ -58,6 +94,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
"nixos-generators": "nixos-generators",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
31
flake.nix
31
flake.nix
|
@ -5,26 +5,37 @@
|
||||||
inputs.home-manager.url = "github:nix-community/home-manager";
|
inputs.home-manager.url = "github:nix-community/home-manager";
|
||||||
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
inputs.home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
inputs.nixos-generators.url = "github:nix-community/nixos-generators";
|
||||||
|
inputs.nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
||||||
outputs = inputs@{ self, nixpkgs, home-manager, flake-utils, ... }:
|
outputs = inputs@{ self, nixpkgs, home-manager, flake-utils, nixos-generators, ... }:
|
||||||
let
|
let
|
||||||
# :(
|
# :(
|
||||||
conf = (import ./build.conf.nix) { wm = "plasma"; };
|
conf = (import ./build.conf.nix) { wm = "plasma"; };
|
||||||
|
modules = [
|
||||||
|
((import ./configuration.nix) conf)
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
{
|
||||||
|
home-manager.useGlobalPkgs = true;
|
||||||
|
home-manager.useUserPackages = true;
|
||||||
|
home-manager.users.mbk = (import ./home.nix) conf;
|
||||||
|
}
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
{
|
{
|
||||||
nix = nixpkgs.lib.nixosSystem {
|
nix = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = modules;
|
||||||
((import ./configuration.nix) conf)
|
};
|
||||||
home-manager.nixosModules.home-manager
|
};
|
||||||
{
|
|
||||||
home-manager.useGlobalPkgs = true;
|
packages.x86_64-linux = {
|
||||||
home-manager.useUserPackages = true;
|
iso = nixos-generators.nixosGenerate {
|
||||||
home-manager.users.mbk = (import ./home.nix) conf;
|
system = "x86_64-linux";
|
||||||
}
|
modules = modules;
|
||||||
];
|
format = "iso";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue