My dotfiles for my nixos machines and infra
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

use deploy-rs

MrSnowy 1fcf0ebc deff0780

+117 -8
+1 -2
nixos/home-manager/snowy.nix
··· 65 65 pkgs-extra-unstable.hyprlandPlugins.hyprsplit 66 66 ]; 67 67 68 - 69 68 systemd.user.sessionVariables = { 70 69 # Define some locations of some files, this seemed like the least wack way to do things. 71 70 POLKIT_GNOME = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1"; 72 - LIB_HYPRSPLIT = "${pkgs-extra-unstable.hyprlandPlugins.hyprsplit}/lib/libhyprsplit.so" 71 + LIB_HYPRSPLIT = "${pkgs-extra-unstable.hyprlandPlugins.hyprsplit}/lib/libhyprsplit.so"; 73 72 }; 74 73 75 74 programs = {
+2
nixos/system/configuration.nix
··· 590 590 quickshell 591 591 qt6.full 592 592 593 + distrobox 594 + 593 595 (discord.override { 594 596 withOpenASAR = true; 595 597 withVencord = true;
+87 -1
server/flake.lock
··· 1 1 { 2 2 "nodes": { 3 + "deploy-rs": { 4 + "inputs": { 5 + "flake-compat": "flake-compat", 6 + "nixpkgs": "nixpkgs", 7 + "utils": "utils" 8 + }, 9 + "locked": { 10 + "lastModified": 1756719547, 11 + "narHash": "sha256-N9gBKUmjwRKPxAafXEk1EGadfk2qDZPBQp4vXWPHINQ=", 12 + "owner": "serokell", 13 + "repo": "deploy-rs", 14 + "rev": "125ae9e3ecf62fb2c0fd4f2d894eb971f1ecaed2", 15 + "type": "github" 16 + }, 17 + "original": { 18 + "owner": "serokell", 19 + "repo": "deploy-rs", 20 + "type": "github" 21 + } 22 + }, 23 + "flake-compat": { 24 + "flake": false, 25 + "locked": { 26 + "lastModified": 1733328505, 27 + "narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=", 28 + "owner": "edolstra", 29 + "repo": "flake-compat", 30 + "rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec", 31 + "type": "github" 32 + }, 33 + "original": { 34 + "owner": "edolstra", 35 + "repo": "flake-compat", 36 + "type": "github" 37 + } 38 + }, 3 39 "home-manager": { 4 40 "inputs": { 5 41 "nixpkgs": [ ··· 23 59 }, 24 60 "nixpkgs": { 25 61 "locked": { 62 + "lastModified": 1743014863, 63 + "narHash": "sha256-jAIUqsiN2r3hCuHji80U7NNEafpIMBXiwKlSrjWMlpg=", 64 + "owner": "NixOS", 65 + "repo": "nixpkgs", 66 + "rev": "bd3bac8bfb542dbde7ffffb6987a1a1f9d41699f", 67 + "type": "github" 68 + }, 69 + "original": { 70 + "owner": "NixOS", 71 + "ref": "nixpkgs-unstable", 72 + "repo": "nixpkgs", 73 + "type": "github" 74 + } 75 + }, 76 + "nixpkgs_2": { 77 + "locked": { 26 78 "lastModified": 1754292888, 27 79 "narHash": "sha256-1ziydHSiDuSnaiPzCQh1mRFBsM2d2yRX9I+5OPGEmIE=", 28 80 "owner": "NixOS", ··· 39 91 }, 40 92 "root": { 41 93 "inputs": { 94 + "deploy-rs": "deploy-rs", 42 95 "home-manager": "home-manager", 43 - "nixpkgs": "nixpkgs" 96 + "nixpkgs": "nixpkgs_2" 97 + } 98 + }, 99 + "systems": { 100 + "locked": { 101 + "lastModified": 1681028828, 102 + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", 103 + "owner": "nix-systems", 104 + "repo": "default", 105 + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", 106 + "type": "github" 107 + }, 108 + "original": { 109 + "owner": "nix-systems", 110 + "repo": "default", 111 + "type": "github" 112 + } 113 + }, 114 + "utils": { 115 + "inputs": { 116 + "systems": "systems" 117 + }, 118 + "locked": { 119 + "lastModified": 1731533236, 120 + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", 121 + "owner": "numtide", 122 + "repo": "flake-utils", 123 + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", 124 + "type": "github" 125 + }, 126 + "original": { 127 + "owner": "numtide", 128 + "repo": "flake-utils", 129 + "type": "github" 44 130 } 45 131 } 46 132 },
+15
server/flake.nix
··· 8 8 inputs.nixpkgs.follows = "nixpkgs"; 9 9 }; 10 10 11 + deploy-rs.url = "github:serokell/deploy-rs"; 12 + 11 13 # zenium.url = "git+https://git.killuaa.dev/Rouffy/Zenium"; 12 14 }; 13 15 14 16 outputs = 15 17 { 18 + self, 16 19 nixpkgs, 17 20 home-manager, 21 + deploy-rs, 18 22 # zenium, 19 23 ... 20 24 }@inputs: ··· 46 50 } 47 51 48 52 ]; 53 + }; 54 + 55 + # deploy-rs config 56 + deploy.nodes.snow-den = { 57 + hostname = "server"; # can be IP or hostname in SSH config 58 + profiles.system = { 59 + sshUser = "snow"; # non-root user with access 60 + user = "root"; 61 + interacticeSudo = true; 62 + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.snow-den; 63 + }; 49 64 }; 50 65 }; 51 66 }
+12 -5
server/home-manager/apps/fish.nix
··· 15 15 # }; 16 16 # }; 17 17 shellInit = '' 18 - set -xg fish_color_command blue 19 - echo hello 18 + if status is-interactive 19 + set -xg fish_color_command blue 20 + echo "Welcome to $(whoami)@$(hostname)!" 21 + echo "---" 22 + echo "Current generations:" 23 + listgens 24 + echo "" 25 + end 20 26 ''; 21 27 shellAliases = { 22 28 fetch = "clear && fastfetch"; ··· 32 38 docvol = "cd ~/.local/share/docker/volumes"; 33 39 34 40 logboot = "journalctl --boot=-1 --reverse"; 35 - reslave = "nh os switch ~/Nixos -u && nh clean all"; 36 - rebuild = "nh os switch ~/Nixos"; 37 - rebuildc = "nh os switch ~/Nixos && nh clean all"; 41 + # reslave = "nh os switch ~/Nixos -u && nh clean all"; 42 + # rebuild = "nh os switch ~/Nixos"; 43 + # rebuildc = "nh os switch ~/Nixos && nh clean all"; 44 + listgens = "sudo nix-env -p /nix/var/nix/profiles/system --list-generations"; 38 45 }; 39 46 }; 40 47 }