Compare commits

..

9 Commits

Author SHA1 Message Date
507b4fcefd added sops-nix 2026-11-14 17:04:25 +00:00
f08d778a56 added secrets 2026-11-14 16:44:58 +00:00
aa1807e17c added cursors 2026-11-14 16:31:48 +00:00
84ac992e26 added gtk theme 2026-11-14 16:28:04 +00:00
45a0c0ccf5 updated hyprland override syntax 2026-11-14 16:14:23 +00:00
362d9e744a added fira-mono to foot 2026-11-14 16:01:06 +00:00
f6f505cc03 updated readme to mention the hyprland config 2026-11-08 17:25:16 +00:00
3b039c93ac added comments for casual readers 2026-11-08 17:09:59 +00:00
ce5062db24 updated hyprland 2026-11-08 14:45:24 +00:00
11 changed files with 148 additions and 20 deletions

View File

@@ -17,5 +17,8 @@ Some commits will require impure evaluation, although I will keep this to a mini
Comments have been placed outside of filming to explain what parts of the code do, Comments have been placed outside of filming to explain what parts of the code do,
as this is a mostly "for reference" repo. as this is a mostly "for reference" repo.
This repo also depends on [this hyprland config](https://git.voidarc.co.uk/adumh00man/hyprland-dendritic),
which is self contained, but contains some more useful wrapper examples.
Any issues or typos or whatever can be reported via [email](mailto://admin@voidarc.co.uk) Any issues or typos or whatever can be reported via [email](mailto://admin@voidarc.co.uk)
or [matrix](https://matrix.to/#/@admin:voidarc.co.uk). Lots of love <3 or [matrix](https://matrix.to/#/@admin:voidarc.co.uk). Lots of love <3

3
age.txt Normal file
View File

@@ -0,0 +1,3 @@
# created: 2026-11-14T16:38:56Z
# public key: age1xxeh8ju80rcct7k349jx338ylav04a44cnmp924plxnhkjvhmfcqmas62n
AGE-SECRET-KEY-1WTP26ZUF85T79Q9VEQTP7U5L83M7QQHWFTUPXPPLY2YP6QYF8S2QCQ6XYU

29
flake.lock generated
View File

@@ -28,11 +28,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1794147939, "lastModified": 1794672526,
"narHash": "sha256-G9TL6v0CFgB28vLO7AZMTSY6eJkncl066W9ocFt978o=", "narHash": "sha256-r6vKRLhiij+fNQdDY2XhmYH+KtqXDWTGEjUR28FFQ1c=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "027552e38e4e3ff60795235bcf45cbb3af5b0003", "rev": "24e78099cc14da3ee732719a6d5fdab150fa52c5",
"revCount": 4, "revCount": 7,
"type": "git", "type": "git",
"url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic" "url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic"
}, },
@@ -178,9 +178,30 @@
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nvim": "nvim", "nvim": "nvim",
"sops-nix": "sops-nix",
"wrappers": "wrappers_2" "wrappers": "wrappers_2"
} }
}, },
"sops-nix": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1794624949,
"narHash": "sha256-3q/hxp/flW1PnV3Dx+H3p8kHGEHJ7251BqVMNsAAB9E=",
"owner": "Mic92",
"repo": "sops-nix",
"rev": "11e5885d241743ff0193465d533b20e754bc3ce0",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "sops-nix",
"type": "github"
}
},
"wrappers": { "wrappers": {
"inputs": { "inputs": {
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"

View File

@@ -15,6 +15,11 @@
# My Nvim config # My Nvim config
nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim"; nvim.url = "git+https://git.voidarc.co.uk/voidarc/nvim";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Hyprland Configuration # Hyprland Configuration
hyprland = { hyprland = {
url = "git+https://git.voidarc.co.uk/adumh00man/hyprland-dendritic"; url = "git+https://git.voidarc.co.uk/adumh00man/hyprland-dendritic";

View File

@@ -3,15 +3,23 @@
self, self,
... ...
}: { }: {
# Desktop Attribute, brings together all things you would need for a desktop
# Segmenting like this makes it easier to have different types of machines
# Using the same config, like having a "laptop" attribute if you need different
# packages there, etc.
flake.nixosModules.desktop = moduleWithSystem ({pkgs, ...}: let flake.nixosModules.desktop = moduleWithSystem ({pkgs, ...}: let
modules = with self.nixosModules; [ modules = with self.nixosModules; [
core core
networking networking
hyprland hyprland
theming
sops
]; ];
in { in {
imports = modules; imports = modules;
# Add lazygit to every desktop
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lazygit lazygit
]; ];

View File

@@ -8,14 +8,20 @@
foot foot
]; ];
}); });
perSystem = { # PerSystem, gives access to self' and inputs', as well as some helper functions
inputs', perSystem = {pkgs, ...}: {
pkgs, # Simple wrapper for foot, sets background color to bright red
... packages.foot = let
}: { fira-mono = pkgs.nerd-fonts.fira-mono;
packages.foot = inputs.wrappers.wrappers.foot.wrap { font-config = pkgs.makeFontsConf {
fontDirectories = [fira-mono];
};
in
inputs.wrappers.wrappers.foot.wrap {
inherit pkgs;
env."FONTCONFIG_FILE" = "${font-config}";
settings = { settings = {
colors.backround = "#FF0000"; main.font = "FiraMono Nerd Font:size=18";
}; };
}; };
}; };

View File

@@ -1,5 +1,7 @@
{moduleWithSystem, ...}: { {moduleWithSystem, ...}: {
# moduleWithSystem for Hyprland
flake.nixosModules.hyprland = moduleWithSystem ({self', ...}: { flake.nixosModules.hyprland = moduleWithSystem ({self', ...}: {
# Native wrapper for hyprland instead of environment.systemPackages
programs.hyprland = { programs.hyprland = {
enable = true; enable = true;
package = self'.packages.hyprland; package = self'.packages.hyprland;
@@ -11,14 +13,12 @@
self', self',
... ...
}: { }: {
# Override input pacakge (using inputs' for right version)
packages.hyprland = inputs'.hyprland.packages.default.override { packages.hyprland = inputs'.hyprland.packages.default.override {
runtimePkgs = with pkgs; # Change runtimePkgs to add custom foot version
[ runtimePkgs = {
waybar foot = self'.packages.foot;
] };
++ (with self'.packages; [
foot
]);
}; };
}; };
} }

View File

@@ -0,0 +1,22 @@
{inputs, ...}: {
flake.nixosModules.sops = {
pkgs,
config,
...
}: {
imports = [inputs.sops-nix.nixosModules.default];
sops = {
age.keyFile = "/home/user01/Projects/dendritic-tutorial/age.txt";
defaultSopsFile = ./secrets.yaml;
secrets = {
secret = {};
something = {};
};
templates = {
"secret-value.env".content = "${config.sops.placeholder.something}";
};
};
};
}

View File

@@ -0,0 +1,17 @@
secret: ENC[AES256_GCM,data:2W9fC2QMVuctXc7kkX6a++ee,iv:igaTggUUKodYheKF4oxBwzfVjKJMAp/XNt+idd4xfek=,tag:Avv1hkngS7OAFAfMrbrD6A==,type:str]
something: ENC[AES256_GCM,data:rNfYkLtWVEgvU9Xrfg==,iv:v6q7846C+fWKz0gOo2xWcb0SGkha+dJMTZ2/4+uud10=,tag:FZhiU7NuReIk4BLlnquMhA==,type:str]
sops:
age:
- enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBUa0orV3o0Qm82MUo3NlNG
YitrcGNUUWZQUkszc096VlI5SWxrTkxNdVZRCjZLelZaV1p2MzNDRjVNS3lNMnVw
SWl5NkVHSWNrOHVaa3YySWVzZVhNcFEKLS0tIEdVU0RYY2ZDcUorK0cvT1lYTjhw
ekE0QjBkSnVWYWE1LzN1VHphZWtWMHcKc83T1EyVzmQHtGA2Mdt4uRsYx89AbNkg
Ng3b82VcxZQzR9HadM55MFy2BKGqpjOed+iBwesliU2JPcbkQb75dg==
-----END AGE ENCRYPTED FILE-----
recipient: age1xxeh8ju80rcct7k349jx338ylav04a44cnmp924plxnhkjvhmfcqmas62n
lastmodified: "2026-11-14T16:43:47Z"
mac: ENC[AES256_GCM,data:+RcPJKJrejXkEw17qmYDFSb62Cc4QxsQdZ1j7UkMaPenoebzgQl6kQIbPAlK14rDldmRnSGm0A3YOrB8Y6S0URu+H4R2e+PdXEo4xJKnIHfWufCmJj+k++d8Sueh3030JJuDJvjKGm6/l4/CkUDXELnVQGKlaF3Rux31ORHDvtI=,iv:1gEnVSC8r10qEMUATcoukvd0GuqxIYtXlJi+yirAl5k=,tag:Q3sOasF4i9wEySR02L4U1g==,type:str]
unencrypted_suffix: _unencrypted
version: 3.13.3

View File

@@ -81,6 +81,7 @@
v = lib.getExe inputs'.nvim.packages.default; v = lib.getExe inputs'.nvim.packages.default;
ff = lib.getExe pkgs.fastfetch; ff = lib.getExe pkgs.fastfetch;
cat = lib.getExe pkgs.bat; cat = lib.getExe pkgs.bat;
secret = "cat /run/secrets/secret-value";
}; };
# Can also be zshrc.path, and path will take precedence over content. # Can also be zshrc.path, and path will take precedence over content.
zshrc.content = '' zshrc.content = ''

View File

@@ -0,0 +1,42 @@
{moduleWithSystem, ...}: {
flake.nixosModules.theming = moduleWithSystem ({pkgs, ...}: {
environment.systemPackages = with pkgs; [
(catppuccin-gtk.override {
accents = ["mauve"];
size = "compact";
tweaks = ["rimless"];
variant = "mocha";
})
(catppuccin-papirus-folders.override {
accent = "mauve";
})
bibata-cursors
nwg-look
];
environment.variables = {
XCURSOR_THEME = "Bibata-Modern-Ice";
XCURSOR_SIZE = "20";
};
programs = {
xfconf.enable = true;
dconf = {
enable = true;
profiles.user.databases = [
{
lockAll = false;
settings = {
"org/gnome/desktop/interface" = {
gtk-theme = "catppuccin-mocha-mauve-compact+rimless";
icon-theme = "Papirus";
color-scheme = "prefer-dark";
cursor-name = "Bibata-Modern-Ice";
};
};
}
];
};
};
});
}