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
22 changed files with 139 additions and 56 deletions

63
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,11 +383,14 @@
"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",
"nur": "nur", "nur": "nur",
"nysh": "nysh" "nysh": "nysh",
"wallpapers": "wallpapers"
} }
}, },
"snowfall-lib": { "snowfall-lib": {
@ -400,6 +446,21 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"wallpapers": {
"locked": {
"lastModified": 1740422160,
"narHash": "sha256-nHQOBJU/ZXnhHeOIv1InIjCKeFjnHZshGj/BcCdRjnQ=",
"ref": "refs/heads/main",
"rev": "f7857fa316d70847b02dc266099ce2b4eb10f5ea",
"revCount": 3,
"type": "git",
"url": "https://git.ccnlc.eu/nydragon/wallpapers.git"
},
"original": {
"type": "git",
"url": "https://git.ccnlc.eu/nydragon/wallpapers.git"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -35,6 +35,18 @@
url = "git+https://git.ccnlc.eu/nydragon/nur.git"; url = "git+https://git.ccnlc.eu/nydragon/nur.git";
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";
}; };
outputs = outputs =

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

@ -1,24 +1,20 @@
{ {
self,
lib, lib,
pkgs, pkgs,
config, config,
... ...
}: }:
let
inherit (lib.my) getExe';
in
{ {
systemd.user.services.swww = { systemd.user.services.swww = {
Install.WantedBy = [ "graphical-session.target" ]; Install.WantedBy = [ "graphical-session.target" ];
Unit.After = [ "graphical-session.target" ];
Unit = {
After = [ "graphical-session.target" ];
};
Service = { Service = {
Type = "simple"; Type = "simple";
ExecStart = "${pkgs.swww}/bin/swww-daemon"; ExecStart = getExe' pkgs.swww "swww-daemon";
ExecStartPost = "${pkgs.swww}/bin/swww img ${
self + "/assets/landscape-pink-pastel.jpg"
} -t wipe --transition-fps 144";
Restart = "on-failure"; Restart = "on-failure";
BindPaths = "/run/user /home/${config.home.username}/.cache/swww"; BindPaths = "/run/user /home/${config.home.username}/.cache/swww";
TemporaryFileSystem = "/home /run/user /root"; TemporaryFileSystem = "/home /run/user /root";

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

@ -1,10 +1,10 @@
{ self, ... }: { inputs, ... }:
{ {
services.hyprpaper = { services.hyprpaper = {
enable = false; enable = false;
settings = settings =
let let
wp = "${self}/assets/wallpapers/nix-flake-pastel.jpg"; wp = inputs.wallpapers.wallpapers.pastel.nix-flake-pastel.path;
in in
{ {
ipc = "on"; ipc = "on";

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";
@ -87,7 +88,6 @@
fish.enable = true; fish.enable = true;
firefox.enable = true; firefox.enable = true;
thunderbird.enable = true; thunderbird.enable = true;
sway.enable = true;
hyprland.enable = true; hyprland.enable = true;
pulseview.enable = true; pulseview.enable = true;
gnupg.agent = { gnupg.agent = {

View file

@ -1,7 +1,8 @@
{ pkgs, ... }: { pkgs, inputs, ... }:
{ {
environment.sessionVariables = { environment.sessionVariables = {
MANROFFOPT = "-c"; MANROFFOPT = "-c";
MANPAGER = "sh -c 'col -bx | ${pkgs.bat}/bin/bat -l man -p'"; MANPAGER = "sh -c 'col -bx | ${pkgs.bat}/bin/bat -l man -p'";
WALLPAPERS = "${inputs.wallpapers}";
}; };
} }

View file

@ -1,8 +1,8 @@
{ {
self,
pkgs, pkgs,
lib, lib,
config, config,
inputs,
... ...
}: }:
lib.mkIf config.services.displayManager.sddm.enable { lib.mkIf config.services.displayManager.sddm.enable {
@ -18,7 +18,7 @@ lib.mkIf config.services.displayManager.sddm.enable {
flavor = "mocha"; flavor = "mocha";
font = "Noto Sans"; font = "Noto Sans";
fontSize = "9"; fontSize = "9";
background = "${self}/assets/wallpapers/nix-flake-pastel.jpg"; background = inputs.wallpapers.wallpapers.pastel.nix-flake-pastel.path;
loginBackground = true; loginBackground = true;
}) })
]; ];

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";
}; };
} }