mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-06 21:17:14 -06:00
feat: added iso
This commit is contained in:
parent
0dbcbb6b19
commit
1bf13e57be
10 changed files with 71 additions and 17 deletions
|
|
@ -159,6 +159,14 @@
|
|||
inputs.lix-module.nixosModules.default
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
iso = inputs.self.lib.mkLinuxSystem [
|
||||
./profiles/user0
|
||||
config.nixosModules.iso
|
||||
config.nixosModules.core
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
inputs.lix-module.nixosModules.default
|
||||
];
|
||||
|
||||
};
|
||||
templates = {
|
||||
haskell = {
|
||||
|
|
|
|||
|
|
@ -230,13 +230,13 @@ in
|
|||
];
|
||||
|
||||
ceresStorageDriveName = "NAS1";
|
||||
ceresIP = "192.168.50.140";
|
||||
ceresIP = "10.0.0.72";
|
||||
erisIP = "192.168.50.245";
|
||||
deimosIP = "192.168.50.176";
|
||||
marsIP = "192.168.50.218";
|
||||
phoneIP = "192.168.50.243";
|
||||
phobosIP = "192.168.50.180";
|
||||
synologyIP = "192.168.50.209";
|
||||
synologyIP = "10.0.0.122";
|
||||
brotherIP = "192.168.50.195";
|
||||
externalIP = "24.76.173.0";
|
||||
|
||||
|
|
@ -255,6 +255,8 @@ in
|
|||
nasLabel = "Synology";
|
||||
phone = "pixel";
|
||||
phoneLabel = "Pixel";
|
||||
iso = "iso";
|
||||
isoLabel = "Iso";
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
|||
12
modules/config/devices/config/nixos.nix
Normal file
12
modules/config/devices/config/nixos.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ moduleFunctions }:
|
||||
let
|
||||
inherit (moduleFunctions.devicesFunctions)
|
||||
deviceNames
|
||||
;
|
||||
|
||||
isoName = deviceNames.iso;
|
||||
in
|
||||
{
|
||||
label = deviceNames.serverLabel;
|
||||
name = isoName;
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ in
|
|||
ceres
|
||||
phobos
|
||||
eris
|
||||
nixos
|
||||
;
|
||||
inherit (config.people)
|
||||
user0
|
||||
|
|
@ -162,5 +163,15 @@ in
|
|||
;
|
||||
};
|
||||
};
|
||||
"${nixos.name}-${user0}" = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
cli
|
||||
firefox
|
||||
ghostty
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
11
modules/home/gui/apps/browsers/firefox/default.nix
Normal file
11
modules/home/gui/apps/browsers/firefox/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
firefox
|
||||
;
|
||||
};
|
||||
}
|
||||
|
|
@ -85,6 +85,15 @@ in
|
|||
};
|
||||
};
|
||||
|
||||
iso = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
iso
|
||||
xserver
|
||||
;
|
||||
};
|
||||
};
|
||||
|
||||
crust = {
|
||||
imports = builtins.attrValues {
|
||||
inherit (modules)
|
||||
|
|
|
|||
|
|
@ -1,15 +0,0 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
hardware.keyboard.zsa.enable = true;
|
||||
|
||||
environment = {
|
||||
enableAllTerminfo = true;
|
||||
systemPackages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
zsa-udev-rules
|
||||
keymapp
|
||||
kontroll
|
||||
;
|
||||
};
|
||||
};
|
||||
}
|
||||
11
modules/nixos/iso/default.nix
Executable file
11
modules/nixos/iso/default.nix
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
let
|
||||
importList =
|
||||
let
|
||||
content = builtins.readDir ./.;
|
||||
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
|
||||
in
|
||||
map (name: ./. + "/${name}") dirContent;
|
||||
in
|
||||
{
|
||||
imports = importList;
|
||||
}
|
||||
4
modules/nixos/iso/installer/default.nix
Normal file
4
modules/nixos/iso/installer/default.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{ modulesPath, ... }:
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/cd-dvd/installation-cd-graphical-calamares-plasma6.nix") ];
|
||||
}
|
||||
1
modules/nixos/iso/platform/default.nix
Normal file
1
modules/nixos/iso/platform/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
||||
Loading…
Add table
Add a link
Reference in a new issue