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-index-database.url = "github:nix-community/nix-index-database";
# nixos-cosmic.url = "github:lilyinstarlight/nixos-cosmic";
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
# 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";
stylix.url = "github:danth/stylix";
way-edges.url = "github:way-edges/way-edges";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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