Compare commits

...

5 Commits

Author SHA1 Message Date
d8b372c165 modules/home/desktop/default.nix: sort, remove /default.nix
modules/home/programs/default.nix: sort, remove /default.nix
modules/nixos/desktop/default.nix: sort, remove /default.nix
modules/nixos/system/default.nix: sort, remove /default.nix

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-30 00:41:10 +02:00
686c3f73f9 modules/home/desktop/niri/default.nix: WIP move to id's
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-30 00:41:10 +02:00
dc1ebb3655 hosts/dunamis/programs.nix: restructure
Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-30 00:41:10 +02:00
0f510c7431 hosts/dunamis/networking.nix: add hostId
hosts/sarien/networking.nix: add hostId

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-30 00:41:10 +02:00
079654ef48 flake.nix: add nixos-hardware
hosts/dunamis/hardware.nix: add nixos-hardware

Signed-off-by: unexplrd <unexplrd@linerds.us>
2025-03-30 00:41:10 +02:00
10 changed files with 48 additions and 51 deletions

View File

@ -16,8 +16,9 @@
nix-flatpak.url = "github:gmodena/nix-flatpak"; nix-flatpak.url = "github:gmodena/nix-flatpak";
nix-index-database.url = "github:nix-community/nix-index-database"; nix-index-database.url = "github:nix-community/nix-index-database";
# nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic"; # nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
# nixvim.url = "github:nix-community/nixvim"; # nixvim.url = "github:nix-community/nixvim";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
sops-nix.url = "github:mic92/sops-nix"; sops-nix.url = "github:mic92/sops-nix";
stylix.url = "github:danth/stylix"; stylix.url = "github:danth/stylix";
way-edges.url = "github:way-edges/way-edges"; way-edges.url = "github:way-edges/way-edges";

View File

@ -1,23 +1,19 @@
{ {
config, inputs,
lib,
pkgs,
modulesPath, modulesPath,
... ...
}: { }: {
imports = [ imports = with inputs.nixos-hardware.nixosModules; [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
common-amd-cpu-pstate
common-intel-gpu
common-pc-ssd
]; ];
hardware = {
hardware.graphics = { enableRedistributableFirmware = true;
enable = true; intelgpu = {
extraPackages = with pkgs; [ vaapiDriver = "intel-media-driver";
intel-media-driver useIntelMediaDriver = true;
vaapiIntel };
vpl-gpu-rt
];
}; };
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }

View File

@ -1,6 +1,7 @@
{ {
networking = { networking = {
networkmanager.enable = true; hostId = "c7f6c4a1";
hostName = "dunamis"; hostName = "dunamis";
networkmanager.enable = true;
}; };
} }

View File

@ -3,13 +3,15 @@
lib, lib,
... ...
}: { }: {
programs.nh = { programs = {
enable = true; fish.enable = true;
clean.enable = true; nh = {
clean.extraArgs = "--keep-since 7d --keep 3"; enable = true;
flake = "/home/user/.config/nixos"; clean.enable = true;
clean.extraArgs = "--keep-since 7d --keep 3";
flake = "/home/user/.config/nixos";
};
}; };
programs.fish.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
(lib.hiPrio uutils-coreutils-noprefix) (lib.hiPrio uutils-coreutils-noprefix)
helix helix

View File

@ -1,12 +1,8 @@
let {
hosts.sarien = { networking = {
networkmanager.enable = true;
hostId = "31150fae"; hostId = "31150fae";
hostName = "vylxae"; hostName = "vylxae";
};
in {
networking = {
inherit (hosts.sarien) hostId hostName;
networkmanager.enable = true;
hosts = { hosts = {
"192.168.1.42" = ["dunamis"]; "192.168.1.42" = ["dunamis"];
}; };

View File

@ -2,9 +2,9 @@
imports = with inputs; [ imports = with inputs; [
way-edges.homeManagerModules.default way-edges.homeManagerModules.default
./common/xdg-userdirs.nix ./common/xdg-userdirs.nix
./hyprland/default.nix ./gnome
./gnome/default.nix ./hyprland
./niri/default.nix ./niri
./plasma/default.nix ./plasma
]; ];
} }

View File

@ -6,16 +6,16 @@
... ...
}: let }: let
cfg = config.desktop.niri; cfg = config.desktop.niri;
hostname = osConfig.networking.hostName; inherit (osConfig.networking) hostId;
cursor_size = config.stylix.cursor.size;
inherit (config.lib.stylix) colors; inherit (config.lib.stylix) colors;
cursor_size = config.stylix.cursor.size;
keyboard = keyboard =
if hostname == "eldrid" if hostId == "eldrid"
then "chromeos" then "chromeos"
else "platform"; else "platform";
xdgPics = xdgPics =
config.xdg.userDirs.pictures; config.xdg.userDirs.pictures;
ifLaptop = lib.mkIf (hostname != "dunamis"); ifLaptop = lib.mkIf (hostId != "c7f6c4a1");
terminal = lib.getExe pkgs.ghostty; terminal = lib.getExe pkgs.ghostty;
launcher = lib.getExe pkgs.fuzzel; launcher = lib.getExe pkgs.fuzzel;
browser = "app.zen_browser.zen"; browser = "app.zen_browser.zen";
@ -409,7 +409,7 @@ in {
xkb { xkb {
layout "us,ua" layout "us,ua"
${ ${
if hostname == "dunamis" if hostId == "c7f6c4a1"
then "// variant \"colemak_dh_ortho,\"" then "// variant \"colemak_dh_ortho,\""
else "variant \"colemak_dh_ortho,\"" else "variant \"colemak_dh_ortho,\""
} }
@ -1074,8 +1074,8 @@ in {
}; };
} }
] ]
++ (lib.optionals (hostname ++ (lib.optionals (hostId
!= "dunamis") [ != "c7f6c4a1") [
{ {
edge = "top"; edge = "top";
layer = "overlay"; layer = "overlay";

View File

@ -1,9 +1,9 @@
{ {
imports = [ imports = [
./syncthing.nix
./console/yazi.nix ./console/yazi.nix
./editor/default.nix ./editor
./shell/default.nix ./shell
./terminal/default.nix ./terminal
./syncthing.nix
]; ];
} }

View File

@ -1,9 +1,9 @@
{ {
imports = [ imports = [
./niri.nix
# ./cosmic.nix # ./cosmic.nix
./gnome.nix ./gnome.nix
./plasma.nix
./hyprland.nix ./hyprland.nix
./niri.nix
./plasma.nix
]; ];
} }

View File

@ -1,8 +1,9 @@
{ {
imports = [ imports = [
./misc/default.nix ./host
./security/default.nix ./misc
./virtual/default.nix ./security
./wireless/default.nix ./virtual
./wireless
]; ];
} }