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-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";
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
networking = {
|
||||
networkmanager.enable = true;
|
||||
hostId = "c7f6c4a1";
|
||||
hostName = "dunamis";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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"];
|
||||
};
|
||||
|
@ -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
|
||||
];
|
||||
}
|
||||
|
@ -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";
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./syncthing.nix
|
||||
./console/yazi.nix
|
||||
./editor/default.nix
|
||||
./shell/default.nix
|
||||
./terminal/default.nix
|
||||
./editor
|
||||
./shell
|
||||
./terminal
|
||||
./syncthing.nix
|
||||
];
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./niri.nix
|
||||
# ./cosmic.nix
|
||||
./gnome.nix
|
||||
./plasma.nix
|
||||
./hyprland.nix
|
||||
./niri.nix
|
||||
./plasma.nix
|
||||
];
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
{
|
||||
imports = [
|
||||
./misc/default.nix
|
||||
./security/default.nix
|
||||
./virtual/default.nix
|
||||
./wireless/default.nix
|
||||
./host
|
||||
./misc
|
||||
./security
|
||||
./virtual
|
||||
./wireless
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user