Compare commits

..

5 commits

Author SHA1 Message Date
eb591d4b9c
chore: switch marr over to hjem
Some checks failed
/ test (push) Failing after 2s
2025-02-24 20:10:44 +01:00
83a672b3a9
feat: declarative wallpapers1 2025-02-24 19:47:02 +01:00
532055085f
chore: hjemify fuzzel
Some checks failed
/ test (push) Failing after 2s
2025-02-24 19:44:37 +01:00
b8781fff93
chore: enable docker
Some checks failed
/ test (push) Failing after 2s
2025-02-22 17:51:28 +01:00
3c5964ab38
refactor: hjemify foot & keepassxc 2025-02-22 17:31:54 +01:00
18 changed files with 109 additions and 40 deletions

45
flake.lock generated
View file

@ -156,6 +156,49 @@
"type": "github" "type": "github"
} }
}, },
"hjem": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1737619027,
"narHash": "sha256-jEzZs9dHdmVP5X9HCC/7jrv08aWFfqZV5cZ+cZWYGA4=",
"owner": "feel-co",
"repo": "hjem",
"rev": "48cfa21987672a31a358b7e4d582fc174556e633",
"type": "github"
},
"original": {
"owner": "feel-co",
"repo": "hjem",
"type": "github"
}
},
"hjem-rum": {
"inputs": {
"hjem": [
"hjem"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1740423947,
"narHash": "sha256-TLUC9rkFZBvKSnNtrdkHY0NsnKmW6XYRIdje6Yt2b3w=",
"owner": "nydragon",
"repo": "hjem-rum",
"rev": "de016de0f8e602529f88c0dbd840e4091b566f3f",
"type": "github"
},
"original": {
"owner": "nydragon",
"repo": "hjem-rum",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -340,6 +383,8 @@
"agenix": "agenix", "agenix": "agenix",
"disko": "disko", "disko": "disko",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"hjem": "hjem",
"hjem-rum": "hjem-rum",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",

View file

@ -36,6 +36,16 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
hjem = {
url = "github:feel-co/hjem";
inputs.nixpkgs.follows = "nixpkgs";
};
hjem-rum = {
url = "github:nydragon/hjem-rum";
inputs.nixpkgs.follows = "nixpkgs";
inputs.hjem.follows = "hjem";
};
wallpapers.url = "git+https://git.ccnlc.eu/nydragon/wallpapers.git"; wallpapers.url = "git+https://git.ccnlc.eu/nydragon/wallpapers.git";
}; };

View file

@ -7,7 +7,6 @@
./hyprland ./hyprland
./hyprlock ./hyprlock
./services ./services
./foot.nix
./rofi ./rofi
./sway ./sway
./waybar ./waybar

View file

@ -3,10 +3,8 @@
./firefox ./firefox
./thunderbird ./thunderbird
./vscode ./vscode
./fuzzel.nix
./gammastep.nix # default because I need to protect my peepers ./gammastep.nix # default because I need to protect my peepers
./swww.nix ./swww.nix
./keepassxc.nix
./swayidle.nix ./swayidle.nix
./swaylock.nix ./swaylock.nix
]; ];

View file

@ -7,6 +7,7 @@
}: }:
let let
inherit (lib) mapAttrsToList mkIf hasAttr; inherit (lib) mapAttrsToList mkIf hasAttr;
inherit (lib.my) getExe;
in in
mkIf osConfig.programs.hyprland.enable { mkIf osConfig.programs.hyprland.enable {
home.sessionVariables.ELECTRON_OZONE_PLATFORM_HINT = "auto"; home.sessionVariables.ELECTRON_OZONE_PLATFORM_HINT = "auto";
@ -148,13 +149,13 @@ mkIf osConfig.programs.hyprland.enable {
bindm = [ "$mod,mouse:272,movewindow" ]; bindm = [ "$mod,mouse:272,movewindow" ];
bind = [ bind = [
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel" "$mod, D, exec, ${getExe osConfig.modules.system.roles.desktop.runner.package}"
"$mod, E, exec, ${lib.my.getExe osConfig.modules.system.roles.desktop.filemanager}" "$mod, E, exec, ${getExe osConfig.modules.system.roles.desktop.filemanager}"
"$mod, Return, exec, ${lib.my.getExe osConfig.modules.system.roles.desktop.terminal}" "$mod, Return, exec, ${getExe osConfig.modules.system.roles.desktop.terminal}"
"$mod SHIFT, Q, killactive," "$mod SHIFT, Q, killactive,"
"$mod, V, togglefloating" "$mod, V, togglefloating"
"$mod SHIFT, P, exec, ${config.programs.rofi.package}/bin/rofi -show p -modi p:${pkgs.rofi-power-menu}/bin/rofi-power-menu" "$mod SHIFT, P, exec, ${config.programs.rofi.package}/bin/rofi -show p -modi p:${pkgs.rofi-power-menu}/bin/rofi-power-menu"
"$mod, P, exec, ${pkgs.cliphist}/bin/cliphist wipe & ${pkgs.hyprlock}/bin/hyprlock" "$mod, P, exec, ${getExe pkgs.cliphist} wipe & ${getExe pkgs.hyprlock}"
"$mod SHIFT, C, exec, hyprctl reload" "$mod SHIFT, C, exec, hyprctl reload"
"$mod SHIFT, space, togglefloating" "$mod SHIFT, space, togglefloating"
"$mod, left, movefocus, l" "$mod, left, movefocus, l"

View file

@ -5,7 +5,6 @@
./git ./git
./fish ./fish
./btop.nix ./btop.nix
./hyfetch.nix
./beets.nix ./beets.nix
]; ];
} }

View file

@ -1,15 +0,0 @@
{
programs.fastfetch.enable = true;
programs.hyfetch = {
enable = true;
settings = {
mode = "rgb"; # dunno the other value :sob:
lightness = 0.7; # u may change this
distro = "nixos";
preset = "pansexual"; # sexuality
light_dark = "dark"; # u not crazy are u
backend = "fastfetch";
color_align.mode = "horizontal"; # looks better
};
};
}

View file

@ -12,6 +12,7 @@ in
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./home.nix ./home.nix
../../users/ny
]; ];
boot.loader = { boot.loader = {
@ -25,6 +26,14 @@ in
group = "wheel"; group = "wheel";
}; };
virtualisation.docker = {
enable = true;
rootless = {
enable = true;
setSocketVariable = true;
};
};
services.logind = { services.logind = {
powerKey = "hibernate"; powerKey = "hibernate";
}; };

View file

@ -18,6 +18,8 @@ in
extraModules = [ extraModules = [
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
inputs.hjem.nixosModules.default
inputs.hjem-rum.nixosModules.default
]; ];
}) })
@ -25,7 +27,11 @@ in
inherit username; inherit username;
hostname = "brontes"; hostname = "brontes";
system = "x86_64-linux"; system = "x86_64-linux";
extraModules = [ inputs.agenix.nixosModules.default ]; extraModules = [
inputs.agenix.nixosModules.default
inputs.hjem.nixosModules.default
inputs.hjem-rum.nixosModules.default
];
}) })
(mkSystem' { (mkSystem' {

View file

@ -9,6 +9,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
./home.nix ./home.nix
./ny.nix ./ny.nix
../../users/ny
]; ];
time.timeZone = "Europe/Paris"; time.timeZone = "Europe/Paris";

View file

@ -3,7 +3,7 @@
defaultApplications = defaultApplications =
let let
fileManager = "org.gnome.Nautilus.desktop"; fileManager = "org.gnome.Nautilus.desktop";
browser = "firefox-beta.desktop"; browser = "firefox-esr.desktop";
in in
{ {
"inode/directory" = fileManager; "inode/directory" = fileManager;

View file

@ -30,7 +30,6 @@ in
programs.gamemode.enable = true; programs.gamemode.enable = true;
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lutris
mangohud mangohud
heroic heroic
]; ];

1
users/default.nix Normal file
View file

@ -0,0 +1 @@
{ imports = [ ./ny ]; }

13
users/ny/default.nix Normal file
View file

@ -0,0 +1,13 @@
{ lib, ... }:
{
hjem = {
users.ny = {
enable = true;
imports = [ ./programs ];
};
specialArgs = {
libmy = lib.my;
};
clobberByDefault = true;
};
}

View file

@ -0,0 +1,7 @@
{
imports = [
./foot.nix
./fuzzel.nix
./keepassxc.nix
];
}

View file

@ -1,5 +1,5 @@
{ {
programs.foot = { rum.programs.foot = {
enable = true; enable = true;
settings = { settings = {
main = { main = {

View file

@ -1,7 +1,10 @@
{ lib, osConfig, ... }: { libmy, osConfig, ... }:
let
inherit (osConfig.modules.system.roles) desktop;
in
{ {
programs.fuzzel = { rum.programs.fuzzel = {
enable = true; enable = desktop.enable;
settings = { settings = {
main = { main = {
icon-theme = "Papirus-Dark"; icon-theme = "Papirus-Dark";
@ -9,7 +12,7 @@
font = "Hack:weight=bold"; font = "Hack:weight=bold";
line-height = 30; line-height = 30;
fields = "name,generic,comment"; fields = "name,generic,comment";
terminal = lib.my.getExe osConfig.modules.system.roles.desktop.terminal; terminal = libmy.getExe desktop.terminal;
prompt = ''" "''; prompt = ''" "'';
layer = "overlay"; layer = "overlay";
}; };

View file

@ -1,12 +1,7 @@
{ pkgs, ... }:
let
ini = pkgs.formats.ini { };
in
{ {
home.file."keepassxc" = { rum.programs.keepassxc = {
enable = true; enable = true;
settings = {
source = ini.generate "keepassxc.ini" {
General = { General = {
BackupBeforeSave = true; BackupBeforeSave = true;
ConfigVersion = 2; ConfigVersion = 2;
@ -24,7 +19,5 @@ in
TrayIconAppearance = "colorful"; TrayIconAppearance = "colorful";
}; };
}; };
target = ".config/keepassxc/keepassxc.ini";
}; };
} }