Compare commits
5 Commits
277ba48671
...
d8b372c165
Author | SHA1 | Date | |
---|---|---|---|
d8b372c165
|
|||
686c3f73f9
|
|||
dc1ebb3655
|
|||
0f510c7431
|
|||
079654ef48
|
@ -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";
|
||||||
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
networkmanager.enable = true;
|
hostId = "c7f6c4a1";
|
||||||
hostName = "dunamis";
|
hostName = "dunamis";
|
||||||
|
networkmanager.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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"];
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./misc/default.nix
|
./host
|
||||||
./security/default.nix
|
./misc
|
||||||
./virtual/default.nix
|
./security
|
||||||
./wireless/default.nix
|
./virtual
|
||||||
|
./wireless
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user