Compare commits

..

5 Commits

Author SHA1 Message Date
a8a45d3b02 fixed hyprland scoping issue 2026-11-08 14:25:59 +00:00
f9e2b676a5 added foot feature 2026-11-08 14:25:52 +00:00
29469b9c13 updated hyprland 2026-11-08 14:15:15 +00:00
0dfc94e3d7 added hyprland feature 2026-11-08 14:13:22 +00:00
a36df6e6a9 reorganisation 2026-11-08 13:35:10 +00:00
17 changed files with 125 additions and 28 deletions

24
flake.lock generated
View File

@@ -18,6 +18,29 @@
"type": "github" "type": "github"
} }
}, },
"hyprland": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"wrappers": [
"wrappers"
]
},
"locked": {
"lastModified": 1794147939,
"narHash": "sha256-G9TL6v0CFgB28vLO7AZMTSY6eJkncl066W9ocFt978o=",
"ref": "refs/heads/main",
"rev": "027552e38e4e3ff60795235bcf45cbb3af5b0003",
"revCount": 4,
"type": "git",
"url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic"
},
"original": {
"type": "git",
"url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic"
}
},
"import-tree": { "import-tree": {
"locked": { "locked": {
"lastModified": 1788467110, "lastModified": 1788467110,
@@ -150,6 +173,7 @@
"root": { "root": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"hyprland": "hyprland",
"import-tree": "import-tree", "import-tree": "import-tree",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",

View File

@@ -15,6 +15,15 @@
# 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";
# Hyprland Configuration
hyprland = {
url = "git+https://git.voidarc.co.uk/adumh00man/hyprland-dendritic";
inputs = {
nixpkgs.follows = "nixpkgs";
wrappers.follows = "wrappers";
};
};
# Nix Wrapper Modules # Nix Wrapper Modules
wrappers.url = "github:nix-community/nix-wrapper-modules"; wrappers.url = "github:nix-community/nix-wrapper-modules";
}; };

View File

@@ -0,0 +1,19 @@
{
moduleWithSystem,
self,
...
}: {
flake.nixosModules.desktop = moduleWithSystem ({pkgs, ...}: let
modules = with self.nixosModules; [
core
networking
hyprland
];
in {
imports = modules;
environment.systemPackages = with pkgs; [
lazygit
];
});
}

View File

@@ -0,0 +1,22 @@
{
moduleWithSystem,
inputs,
...
}: {
flake.nixosModules.foot = moduleWithSystem ({self', ...}: {
environment.systemPackages = with self'.packages; [
foot
];
});
perSystem = {
inputs',
pkgs,
...
}: {
packages.foot = inputs.wrappers.wrappers.foot.wrap {
settings = {
colors.backround = "#FF0000";
};
};
};
}

View File

@@ -0,0 +1,24 @@
{moduleWithSystem, ...}: {
flake.nixosModules.hyprland = moduleWithSystem ({self', ...}: {
programs.hyprland = {
enable = true;
package = self'.packages.hyprland;
};
});
perSystem = {
inputs',
pkgs,
self',
...
}: {
packages.hyprland = inputs'.hyprland.packages.default.override {
runtimePkgs = with pkgs;
[
waybar
]
++ (with self'.packages; [
foot
]);
};
};
}

View File

@@ -9,7 +9,7 @@
# Define modules to import # Define modules to import
modules = with self.nixosModules; [ modules = with self.nixosModules; [
hostConfiguration hostConfiguration
system desktop
]; ];
}; };
} }

View File

@@ -9,7 +9,7 @@
# Define modules to import # Define modules to import
modules = with self.nixosModules; [ modules = with self.nixosModules; [
newHostConfiguration newHostConfiguration
system desktop
zsh zsh
# Change config options in this object # Change config options in this object

View File

@@ -0,0 +1,25 @@
{self, ...}: {
# This module acts as a collection of other modules, for ease
# of use. Adding another module to this list will import it
# for all other modules that import this one.
# Keep in mind that you cannot import this module alongside
# any of its children. For example, importing this module and
# the user module in the same block is the same as importing
# the user module twice, leading to an error due to trying
# to define the same user twice.
# Collections should be used for static lists of modules, like
# those that would make up a basic system, as seen here.
# Define flake part nixosModule "core"
flake.nixosModules.core = {...}: let
modules = with self.nixosModules; [
user
bootloader
imports
];
in {
imports = modules;
};
}

View File

@@ -1,26 +0,0 @@
{self, ...}: {
# This module acts as a collection of other modules, for ease
# of use. Adding another module to this list will import it
# for all other modules that import this one.
# Keep in mind that you cannot import this module alongside
# any of its children. For example, importing this module and
# the user module in the same block is the same as importing
# the user module twice, leading to an error due to trying
# to define the same user twice.
# Collections should be used for static lists of modules, like
# those that would make up a basic system, as seen here.
# Define flake part nixosModule "system"
flake.nixosModules.system = {...}: let
modules = with self.nixosModules; [
user
networking
bootloader
imports
];
in {
imports = modules;
};
}