feat: update flake configurations and add WoL for tsuba device

This commit is contained in:
uttarayan21
2025-11-03 13:20:00 +05:30
parent fb3af7f9fa
commit 21e2463822
10 changed files with 379 additions and 26 deletions

334
flake.lock generated
View File

@@ -319,6 +319,23 @@
"type": "github" "type": "github"
} }
}, },
"base16-fish_2": {
"flake": false,
"locked": {
"lastModified": 1754405784,
"narHash": "sha256-l9xHIy+85FN+bEo6yquq2IjD1rSg9fjfjpyGP1W8YXo=",
"owner": "tomyun",
"repo": "base16-fish",
"rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561",
"type": "github"
},
"original": {
"owner": "tomyun",
"repo": "base16-fish",
"rev": "23ae20a0093dca0d7b39d76ba2401af0ccf9c561",
"type": "github"
}
},
"base16-helix": { "base16-helix": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -335,6 +352,22 @@
"type": "github" "type": "github"
} }
}, },
"base16-helix_2": {
"flake": false,
"locked": {
"lastModified": 1748408240,
"narHash": "sha256-9M2b1rMyMzJK0eusea0x3lyh3mu5nMeEDSc4RZkGm+g=",
"owner": "tinted-theming",
"repo": "base16-helix",
"rev": "6c711ab1a9db6f51e2f6887cc3345530b33e152e",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-helix",
"type": "github"
}
},
"base16-vim": { "base16-vim": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -352,6 +385,41 @@
"type": "github" "type": "github"
} }
}, },
"base16-vim_2": {
"flake": false,
"locked": {
"lastModified": 1732806396,
"narHash": "sha256-e0bpPySdJf0F68Ndanwm+KWHgQiZ0s7liLhvJSWDNsA=",
"owner": "tinted-theming",
"repo": "base16-vim",
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-vim",
"rev": "577fe8125d74ff456cf942c733a85d769afe58b7",
"type": "github"
}
},
"base16_2": {
"inputs": {
"fromYaml": "fromYaml_2"
},
"locked": {
"lastModified": 1746562888,
"narHash": "sha256-YgNJQyB5dQiwavdDFBMNKk1wyS77AtdgDk/VtU6wEaI=",
"owner": "SenchoPens",
"repo": "base16.nix",
"rev": "806a1777a5db2a1ef9d5d6f493ef2381047f2b89",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "base16.nix",
"type": "github"
}
},
"command-runner": { "command-runner": {
"inputs": { "inputs": {
"advisory-db": "advisory-db_2", "advisory-db": "advisory-db_2",
@@ -708,6 +776,22 @@
"type": "github" "type": "github"
} }
}, },
"firefox-gnome-theme_2": {
"flake": false,
"locked": {
"lastModified": 1748383148,
"narHash": "sha256-pGvD/RGuuPf/4oogsfeRaeMm6ipUIznI2QSILKjKzeA=",
"owner": "rafaelmardojai",
"repo": "firefox-gnome-theme",
"rev": "4eb2714fbed2b80e234312611a947d6cb7d70caf",
"type": "github"
},
"original": {
"owner": "rafaelmardojai",
"repo": "firefox-gnome-theme",
"type": "github"
}
},
"flake-compat": { "flake-compat": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -872,6 +956,27 @@
"type": "github" "type": "github"
} }
}, },
"flake-parts_10": {
"inputs": {
"nixpkgs-lib": [
"stylix-stable",
"nixpkgs"
]
},
"locked": {
"lastModified": 1749398372,
"narHash": "sha256-tYBdgS56eXYaWVW3fsnPQ/nFlgWi/Z2Ymhyu21zVM98=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "9305fe4e5c2a6fcf5ba6a3ff155720fbe4076569",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-parts_2": { "flake-parts_2": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@@ -1189,7 +1294,7 @@
}, },
"flake-utils_18": { "flake-utils_18": {
"inputs": { "inputs": {
"systems": "systems_22" "systems": "systems_23"
}, },
"locked": { "locked": {
"lastModified": 1731533236, "lastModified": 1731533236,
@@ -1207,7 +1312,7 @@
}, },
"flake-utils_19": { "flake-utils_19": {
"inputs": { "inputs": {
"systems": "systems_23" "systems": "systems_24"
}, },
"locked": { "locked": {
"lastModified": 1726560853, "lastModified": 1726560853,
@@ -1243,7 +1348,7 @@
}, },
"flake-utils_20": { "flake-utils_20": {
"inputs": { "inputs": {
"systems": "systems_24" "systems": "systems_25"
}, },
"locked": { "locked": {
"lastModified": 1731533236, "lastModified": 1731533236,
@@ -1401,6 +1506,22 @@
"type": "github" "type": "github"
} }
}, },
"fromYaml_2": {
"flake": false,
"locked": {
"lastModified": 1731966426,
"narHash": "sha256-lq95WydhbUTWig/JpqiB7oViTcHFP8Lv41IGtayokA8=",
"owner": "SenchoPens",
"repo": "fromYaml",
"rev": "106af9e2f715e2d828df706c386a685698f3223b",
"type": "github"
},
"original": {
"owner": "SenchoPens",
"repo": "fromYaml",
"type": "github"
}
},
"ghostty": { "ghostty": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": "flake-compat_2",
@@ -1484,6 +1605,23 @@
"type": "github" "type": "github"
} }
}, },
"gnome-shell_2": {
"flake": false,
"locked": {
"lastModified": 1744584021,
"narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=",
"owner": "GNOME",
"repo": "gnome-shell",
"rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae",
"type": "github"
},
"original": {
"owner": "GNOME",
"ref": "48.1",
"repo": "gnome-shell",
"type": "github"
}
},
"guihua": { "guihua": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -1539,7 +1677,7 @@
"home-manager-stable": { "home-manager-stable": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs-stable"
] ]
}, },
"locked": { "locked": {
@@ -2599,16 +2737,16 @@
}, },
"nixpkgs-stable": { "nixpkgs-stable": {
"locked": { "locked": {
"lastModified": 1751274312, "lastModified": 1761999846,
"narHash": "sha256-/bVBlRpECLVzjV19t5KMdMFWSwKLtb5RyXdjz3LJT+g=", "narHash": "sha256-IYlYnp4O4dzEpL77BD/lj5NnJy2J8qbHkNSFiPBCbqo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "50ab793786d9de88ee30ec4e4c24fb4236fc2674", "rev": "3de8f8d73e35724bf9abef41f1bdbedda1e14a31",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nixos", "owner": "nixos",
"ref": "nixos-24.11", "ref": "nixos-25.05",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@@ -2916,6 +3054,32 @@
"type": "github" "type": "github"
} }
}, },
"nur_3": {
"inputs": {
"flake-parts": [
"stylix-stable",
"flake-parts"
],
"nixpkgs": [
"stylix-stable",
"nixpkgs"
],
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1751320053,
"narHash": "sha256-3m6RMw0FbbaUUa01PNaMLoO7D99aBClmY5ed9V3vz+0=",
"owner": "nix-community",
"repo": "NUR",
"rev": "cbde1735782f9c2bb2c63d5e05fba171a14a4670",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"nuschtosSearch": { "nuschtosSearch": {
"inputs": { "inputs": {
"flake-utils": "flake-utils_13", "flake-utils": "flake-utils_13",
@@ -3106,6 +3270,7 @@
"rust-overlay": "rust-overlay_8", "rust-overlay": "rust-overlay_8",
"sops-nix": "sops-nix", "sops-nix": "sops-nix",
"stylix": "stylix", "stylix": "stylix",
"stylix-stable": "stylix-stable",
"tmux-float": "tmux-float", "tmux-float": "tmux-float",
"tree-sitter-d2": "tree-sitter-d2", "tree-sitter-d2": "tree-sitter-d2",
"tree-sitter-just": "tree-sitter-just", "tree-sitter-just": "tree-sitter-just",
@@ -3422,6 +3587,41 @@
"type": "github" "type": "github"
} }
}, },
"stylix-stable": {
"inputs": {
"base16": "base16_2",
"base16-fish": "base16-fish_2",
"base16-helix": "base16-helix_2",
"base16-vim": "base16-vim_2",
"firefox-gnome-theme": "firefox-gnome-theme_2",
"flake-parts": "flake-parts_10",
"gnome-shell": "gnome-shell_2",
"nixpkgs": [
"nixpkgs-stable"
],
"nur": "nur_3",
"systems": "systems_22",
"tinted-foot": "tinted-foot_2",
"tinted-kitty": "tinted-kitty_2",
"tinted-schemes": "tinted-schemes_2",
"tinted-tmux": "tinted-tmux_2",
"tinted-zed": "tinted-zed_2"
},
"locked": {
"lastModified": 1761668239,
"narHash": "sha256-b0+7/5hBUsLjd/gMY9/LSEsvuWFFolHdpUAOlG73zmw=",
"owner": "nix-community",
"repo": "stylix",
"rev": "a149a557dc306e76d53e7dd488826e61ef9c6289",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-25.05",
"repo": "stylix",
"type": "github"
}
},
"systems": { "systems": {
"locked": { "locked": {
"lastModified": 1689347949, "lastModified": 1689347949,
@@ -3677,6 +3877,21 @@
"type": "github" "type": "github"
} }
}, },
"systems_25": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_3": { "systems_3": {
"locked": { "locked": {
"lastModified": 1681028828, "lastModified": 1681028828,
@@ -3799,6 +4014,23 @@
"type": "github" "type": "github"
} }
}, },
"tinted-foot_2": {
"flake": false,
"locked": {
"lastModified": 1726913040,
"narHash": "sha256-+eDZPkw7efMNUf3/Pv0EmsidqdwNJ1TaOum6k7lngDQ=",
"owner": "tinted-theming",
"repo": "tinted-foot",
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "tinted-foot",
"rev": "fd1b924b6c45c3e4465e8a849e67ea82933fcbe4",
"type": "github"
}
},
"tinted-kitty": { "tinted-kitty": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -3815,6 +4047,22 @@
"type": "github" "type": "github"
} }
}, },
"tinted-kitty_2": {
"flake": false,
"locked": {
"lastModified": 1735730497,
"narHash": "sha256-4KtB+FiUzIeK/4aHCKce3V9HwRvYaxX+F1edUrfgzb8=",
"owner": "tinted-theming",
"repo": "tinted-kitty",
"rev": "de6f888497f2c6b2279361bfc790f164bfd0f3fa",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "tinted-kitty",
"type": "github"
}
},
"tinted-schemes": { "tinted-schemes": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -3831,6 +4079,22 @@
"type": "github" "type": "github"
} }
}, },
"tinted-schemes_2": {
"flake": false,
"locked": {
"lastModified": 1750770351,
"narHash": "sha256-LI+BnRoFNRa2ffbe3dcuIRYAUcGklBx0+EcFxlHj0SY=",
"owner": "tinted-theming",
"repo": "schemes",
"rev": "5a775c6ffd6e6125947b393872cde95867d85a2a",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "schemes",
"type": "github"
}
},
"tinted-tmux": { "tinted-tmux": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -3847,6 +4111,22 @@
"type": "github" "type": "github"
} }
}, },
"tinted-tmux_2": {
"flake": false,
"locked": {
"lastModified": 1751159871,
"narHash": "sha256-UOHBN1fgHIEzvPmdNMHaDvdRMgLmEJh2hNmDrp3d3LE=",
"owner": "tinted-theming",
"repo": "tinted-tmux",
"rev": "bded5e24407cec9d01bd47a317d15b9223a1546c",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "tinted-tmux",
"type": "github"
}
},
"tinted-zed": { "tinted-zed": {
"flake": false, "flake": false,
"locked": { "locked": {
@@ -3863,6 +4143,22 @@
"type": "github" "type": "github"
} }
}, },
"tinted-zed_2": {
"flake": false,
"locked": {
"lastModified": 1751158968,
"narHash": "sha256-ksOyv7D3SRRtebpXxgpG4TK8gZSKFc4TIZpR+C98jX8=",
"owner": "tinted-theming",
"repo": "base16-zed",
"rev": "86a470d94204f7652b906ab0d378e4231a5b3384",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "base16-zed",
"type": "github"
}
},
"tmux-float": { "tmux-float": {
"inputs": { "inputs": {
"advisory-db": "advisory-db_5", "advisory-db": "advisory-db_5",
@@ -3968,6 +4264,28 @@
"type": "github" "type": "github"
} }
}, },
"treefmt-nix": {
"inputs": {
"nixpkgs": [
"stylix-stable",
"nur",
"nixpkgs"
]
},
"locked": {
"lastModified": 1733222881,
"narHash": "sha256-JIPcz1PrpXUCbaccEnrcUS8jjEb/1vJbZz5KkobyFdM=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "49717b5af6f80172275d47a418c9719a31a78b53",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"typr": { "typr": {
"flake": false, "flake": false,
"locked": { "locked": {

View File

@@ -3,7 +3,7 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs/master"; nixpkgs-master.url = "github:nixos/nixpkgs/master";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
disko = { disko = {
url = "github:nix-community/disko/latest"; url = "github:nix-community/disko/latest";
@@ -17,9 +17,13 @@
url = "github:nix-community/stylix"; url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
stylix-stable = {
url = "github:nix-community/stylix/release-25.05";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
home-manager-stable = { home-manager-stable = {
url = "github:nix-community/home-manager/release-25.05"; url = "github:nix-community/home-manager/release-25.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs-stable";
}; };
nix-darwin = { nix-darwin = {
url = "github:LnL7/nix-darwin"; url = "github:LnL7/nix-darwin";

View File

@@ -1,8 +1,11 @@
{ {
pkgs, pkgs,
config, config,
lib,
device,
... ...
}: { }:
lib.optionalAttrs (!(device.is "tsuba")) {
programs.git = { programs.git = {
enable = true; enable = true;
lfs.enable = true; lfs.enable = true;

View File

@@ -3,8 +3,8 @@
lib, lib,
device, device,
... ...
}: { }:
stylix.targets.gtk.enable = false; lib.optionalAttrs (device.is "ryu") {
gtk = { gtk = {
enable = device.is "ryu"; enable = device.is "ryu";
theme = { theme = {
@@ -38,4 +38,5 @@
# pkgs.catppuccinThemes.gtk # pkgs.catppuccinThemes.gtk
pkgs.catppuccinThemes.papirus-folders pkgs.catppuccinThemes.papirus-folders
]; ];
stylix.targets.gtk.enable = false;
} }

View File

@@ -5,7 +5,7 @@
... ...
}: { }: {
services.syncthing = { services.syncthing = {
enable = true; enable = device.is "ryu";
openDefaultPorts = true; openDefaultPorts = true;
# user = "${device.user}"; # user = "${device.user}";
# group = "${device.user}"; # group = "${device.user}";

View File

@@ -1,4 +1,10 @@
{pkgs, ...}: { {
pkgs,
lib,
device,
...
}:
lib.optionalAttrs (device.is "ryu") {
xdg.portal = { xdg.portal = {
enable = pkgs.stdenv.isLinux; enable = pkgs.stdenv.isLinux;
# config = { # config = {

View File

@@ -13,16 +13,16 @@
mode = mode; mode = mode;
}) })
mappings; mappings;
# border = [ border = [
# "╭" ""
# "─" ""
# "╮" ""
# "│" ""
# "╯" ""
# "─" ""
# "╰" ""
# "│" ""
# ]; ];
rawLua = lua: { rawLua = lua: {
"__raw" = '' "__raw" = ''
${lua} ${lua}
@@ -124,6 +124,14 @@ in {
pattern = "*.norg"; pattern = "*.norg";
command = "set conceallevel=3"; command = "set conceallevel=3";
} }
{
event = [
"BufEnter"
"BufWinEnter"
];
pattern = "*.pest";
command = "setlocal commentstring=//%s";
}
# { # {
# event = ["BufEnter" "BufWinEnter"]; # event = ["BufEnter" "BufWinEnter"];
# pattern = "*.sql"; # pattern = "*.sql";

View File

@@ -21,7 +21,7 @@
inputs.arion.nixosModules.arion inputs.arion.nixosModules.arion
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
inputs.stylix.nixosModules.stylix inputs.stylix-stable.nixosModules.stylix
inputs.nix-minecraft.nixosModules.minecraft-servers inputs.nix-minecraft.nixosModules.minecraft-servers
nur.modules.nixos.default nur.modules.nixos.default
home-manager-stable.nixosModules.home-manager home-manager-stable.nixosModules.home-manager
@@ -42,15 +42,18 @@
stablePkgs = inputs.nixpkgs-stable.legacyPackages.${device.system}; stablePkgs = inputs.nixpkgs-stable.legacyPackages.${device.system};
}; };
users.${device.user}.imports = [ users.${device.user}.imports = [
inputs.nixvim.homeModules.nixvim
../../home ../../home
]; ];
}; };
} }
./configuration.nix ./configuration.nix
./services ./services
./programs
./disk-config.nix ./disk-config.nix
./${name}.nix ./${name}.nix
../../sops.nix ../../sops.nix
../../stylix.nix
]; ];
} }
) )

View File

@@ -0,0 +1,5 @@
{...}: {
imports = [
./wol.nix
];
}

View File

@@ -0,0 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
wol
];
}