Compare commits
5 Commits
aa20bae49c
...
a8a45d3b02
| Author | SHA1 | Date | |
|---|---|---|---|
| a8a45d3b02 | |||
| f9e2b676a5 | |||
| 29469b9c13 | |||
| 0dfc94e3d7 | |||
| a36df6e6a9 |
24
flake.lock
generated
24
flake.lock
generated
@@ -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",
|
||||||
|
|||||||
@@ -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";
|
||||||
};
|
};
|
||||||
|
|||||||
19
modules/attrs/desktop/default.nix
Normal file
19
modules/attrs/desktop/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
});
|
||||||
|
}
|
||||||
22
modules/features/foot/default.nix
Normal file
22
modules/features/foot/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
24
modules/features/hyprland/default.nix
Normal file
24
modules/features/hyprland/default.nix
Normal 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
|
||||||
|
]);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
# Define modules to import
|
# Define modules to import
|
||||||
modules = with self.nixosModules; [
|
modules = with self.nixosModules; [
|
||||||
hostConfiguration
|
hostConfiguration
|
||||||
system
|
desktop
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
25
modules/system/core/default.nix
Normal file
25
modules/system/core/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user