This commit is contained in:
m3tam3re 2024-09-10 13:59:56 +02:00
parent 1808004efe
commit aa7dcee696
7 changed files with 67 additions and 0 deletions

17
flake.lock generated
View File

@ -1,5 +1,21 @@
{ {
"nodes": { "nodes": {
"dotfiles": {
"flake": false,
"locked": {
"lastModified": 1725956275,
"narHash": "sha256-4tHKP+PLpJKnFfOT6MY3p/NDBr/3NDyWljB8/iELVZs=",
"ref": "refs/heads/master",
"rev": "b1393f4b54b8e908b770450ccc49400713d8e457",
"revCount": 1,
"type": "git",
"url": "https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git"
},
"original": {
"type": "git",
"url": "https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -54,6 +70,7 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"dotfiles": "dotfiles",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"

View File

@ -17,10 +17,16 @@
}; };
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
dotfiles = {
url = "git+https://code.m3tam3re.com/m3tam3re/dotfiles-flake-demo.git";
flake = false;
};
}; };
outputs = { outputs = {
self, self,
dotfiles,
home-manager, home-manager,
nixpkgs, nixpkgs,
... ...

View File

@ -1,5 +1,6 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [ imports = [
./fonts.nix
./hyprland.nix ./hyprland.nix
./wayland.nix ./wayland.nix
]; ];

View File

@ -0,0 +1,23 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.features.desktop.fonts;
in {
options.features.desktop.fonts.enable =
mkEnableOption "install additional fonts for desktop apps";
config = mkIf cfg.enable {
home.packages = with pkgs; [
fira-code
fira-code-symbols
fira-code-nerdfont
font-manager
font-awesome_5
noto-fonts
];
};
}

View File

@ -0,0 +1,8 @@
{
home.file.".config/bat/config".text = ''
--theme="Dracula"
# Show line numbers, Git modifications and file header (but no grid)
--style="numbers,changes,header"
'';
}

View File

@ -0,0 +1,10 @@
{inputs, ...}: {
imports = [
./bat.nix
];
home.file.".config/nvim" = {
source = "${inputs.dotfiles}/nvim";
recursive = true;
};
}

View File

@ -1,6 +1,7 @@
{ {
imports = [ imports = [
../common ../common
./dotfiles
../features/cli ../features/cli
../features/desktop ../features/desktop
./home.nix ./home.nix
@ -13,6 +14,7 @@
neofetch.enable = true; neofetch.enable = true;
}; };
desktop = { desktop = {
fonts.enable = true;
hyprland.enable = true; hyprland.enable = true;
wayland.enable = true; wayland.enable = true;
}; };