adding global username option maybe?
This commit is contained in:
parent
5ba9dfbc92
commit
b9d4d57b6d
2 changed files with 63 additions and 57 deletions
35
flake.nix
35
flake.nix
|
|
@ -1,4 +1,4 @@
|
|||
## SerenityOS
|
||||
# # SerenityOS
|
||||
##
|
||||
## - A study in linux, packaging, user experience,
|
||||
## system and desktop environments, themeing,
|
||||
|
|
@ -52,9 +52,7 @@
|
|||
};
|
||||
|
||||
## Flake parts
|
||||
flake-utils = {
|
||||
url = "github:numtide/flake-utils";
|
||||
};
|
||||
flake-utils = { url = "github:numtide/flake-utils"; };
|
||||
flake-parts = {
|
||||
url = "github:hercules-ci/flake-parts";
|
||||
#inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -72,9 +70,7 @@
|
|||
};
|
||||
|
||||
## Musnix - https://github.com/musnix/musnix
|
||||
musnix = {
|
||||
url = "github:musnix/musnix";
|
||||
};
|
||||
musnix = { url = "github:musnix/musnix"; };
|
||||
|
||||
## Secrets management
|
||||
sops-nix = {
|
||||
|
|
@ -111,19 +107,22 @@
|
|||
|
||||
outputs = { self, nixpkgs, disko, sops-nix, musnix, nixos-generators, ... }
|
||||
|
||||
@ inputs: let
|
||||
@inputs:
|
||||
let
|
||||
|
||||
inherit (self) outputs;
|
||||
|
||||
username = "Serenity";
|
||||
|
||||
in {
|
||||
|
||||
## Installer for easy nuke-n-paves
|
||||
packages.x86_64-linux = {
|
||||
install-iso = nixos-generators.nixosGenerate {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hosts/iso
|
||||
];
|
||||
modules = [ ./hosts/iso ];
|
||||
format = "install-iso";
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -132,18 +131,21 @@
|
|||
|
||||
## Desktop
|
||||
hades = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
specialArgs = {
|
||||
inherit inputs outputs;
|
||||
inherit username;
|
||||
};
|
||||
modules = [
|
||||
musnix.nixosModules.musnix
|
||||
disko.nixosModules.disko
|
||||
sops-nix.nixosModules.sops
|
||||
./hosts/hades/default.nix
|
||||
./hosts/hades
|
||||
];
|
||||
};
|
||||
|
||||
## Home server
|
||||
orcus = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
sops-nix.nixosModules.sops
|
||||
|
|
@ -153,7 +155,7 @@
|
|||
|
||||
## Laptop
|
||||
persephone = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = {inherit inputs outputs;};
|
||||
specialArgs = { inherit inputs outputs; };
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
sops-nix.nixosModules.sops
|
||||
|
|
@ -165,4 +167,3 @@
|
|||
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,11 @@
|
|||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
fileSystems."/run/media/${username}/Tartarus" = {
|
||||
device = "/dev/disk/by-uuid/26d8d9d1-67d2-4d61-a092-10ed7368b9f6";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[{ device = "/dev/disk/by-uuid/b7ccf8c3-3641-4035-b91f-f7e54c6dd380"; }];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue