Compare commits
7 commits
eaa65f3f84
...
9c54aee474
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c54aee474 | ||
|
|
4dc519be8c | ||
|
|
6543e43b72 | ||
|
|
c27e35058d | ||
|
|
13ceef5fa8 | ||
|
|
d17d28b7ea | ||
|
|
955a926d4d |
12 changed files with 154 additions and 114 deletions
105
flake.lock
generated
105
flake.lock
generated
|
|
@ -174,21 +174,6 @@
|
||||||
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"flake-compat_3": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747046372,
|
|
||||||
"narHash": "sha256-CIVLLkVgvHYbgI2UpXvIIBJ12HWgX+fjA8Xf8PUmqCY=",
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"rev": "9100a0f413b0c601e0533d1d94ffd501ce2e7885",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "edolstra",
|
|
||||||
"repo": "flake-compat",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-parts": {
|
"flake-parts": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs-lib": "nixpkgs-lib"
|
"nixpkgs-lib": "nixpkgs-lib"
|
||||||
|
|
@ -334,32 +319,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"git-hooks": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-compat": [
|
|
||||||
"stylix",
|
|
||||||
"flake-compat"
|
|
||||||
],
|
|
||||||
"gitignore": "gitignore_2",
|
|
||||||
"nixpkgs": [
|
|
||||||
"stylix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1747372754,
|
|
||||||
"narHash": "sha256-2Y53NGIX2vxfie1rOW0Qb86vjRZ7ngizoo+bnXU9D9k=",
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"rev": "80479b6ec16fefd9c1db3ea13aeb038c60530f46",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "cachix",
|
|
||||||
"repo": "git-hooks.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"git-hooks-nix": {
|
"git-hooks-nix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
|
|
@ -403,41 +362,19 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"gitignore_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"stylix",
|
|
||||||
"git-hooks",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1709087332,
|
|
||||||
"narHash": "sha256-HG2cCnktfHsKV0s4XW83gU3F57gaTljL9KNSuG6bnQs=",
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "hercules-ci",
|
|
||||||
"repo": "gitignore.nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gnome-shell": {
|
"gnome-shell": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1744584021,
|
"lastModified": 1748186689,
|
||||||
"narHash": "sha256-0RJ4mJzf+klKF4Fuoc8VN8dpQQtZnKksFmR2jhWE1Ew=",
|
"narHash": "sha256-UaD7Y9f8iuLBMGHXeJlRu6U1Ggw5B9JnkFs3enZlap0=",
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"rev": "52c517c8f6c199a1d6f5118fae500ef69ea845ae",
|
"rev": "8c88f917db0f1f0d80fa55206c863d3746fa18d0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "GNOME",
|
"owner": "GNOME",
|
||||||
"ref": "48.1",
|
"ref": "48.2",
|
||||||
"repo": "gnome-shell",
|
"repo": "gnome-shell",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -504,27 +441,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"home-manager_2": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"stylix",
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1748737919,
|
|
||||||
"narHash": "sha256-5kvBbLYdp+n7Ftanjcs6Nv+UO6sBhelp6MIGJ9nWmjQ=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"rev": "5675a9686851d9626560052a032c4e14e533c1fa",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "home-manager",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mnw": {
|
"mnw": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1748710831,
|
"lastModified": 1748710831,
|
||||||
|
|
@ -898,11 +814,8 @@
|
||||||
"base16-helix": "base16-helix",
|
"base16-helix": "base16-helix",
|
||||||
"base16-vim": "base16-vim",
|
"base16-vim": "base16-vim",
|
||||||
"firefox-gnome-theme": "firefox-gnome-theme",
|
"firefox-gnome-theme": "firefox-gnome-theme",
|
||||||
"flake-compat": "flake-compat_3",
|
|
||||||
"flake-parts": "flake-parts_4",
|
"flake-parts": "flake-parts_4",
|
||||||
"git-hooks": "git-hooks",
|
|
||||||
"gnome-shell": "gnome-shell",
|
"gnome-shell": "gnome-shell",
|
||||||
"home-manager": "home-manager_2",
|
|
||||||
"nixpkgs": "nixpkgs_7",
|
"nixpkgs": "nixpkgs_7",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"systems": "systems_6",
|
"systems": "systems_6",
|
||||||
|
|
@ -913,15 +826,15 @@
|
||||||
"tinted-zed": "tinted-zed"
|
"tinted-zed": "tinted-zed"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751145558,
|
"lastModified": 1752163883,
|
||||||
"narHash": "sha256-OPlbpH64jzIspYqvJB96tnN9V9HBlAxROS5ijQwtN70=",
|
"narHash": "sha256-muhhvzHyRIi8JC36ldWLZqli1yUutVQJc+F+lxb8E70=",
|
||||||
"owner": "danth",
|
"owner": "nix-community",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"rev": "3a09d3f5cb940fa4142a2f3415b508a8be92b721",
|
"rev": "46d4a5d694b125cd8c05372275b47ff10f2930aa",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "danth",
|
"owner": "nix-community",
|
||||||
"repo": "stylix",
|
"repo": "stylix",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Ricing
|
# Ricing
|
||||||
stylix.url = "github:danth/stylix";
|
stylix.url = "github:nix-community/stylix";
|
||||||
|
|
||||||
nvf = {
|
nvf = {
|
||||||
url = "github:notashelf/nvf";
|
url = "github:notashelf/nvf";
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,13 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./firefox.nix
|
./firefox.nix
|
||||||
|
./foot.nix
|
||||||
./games.nix
|
./games.nix
|
||||||
|
./kodi.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./nixcord.nix
|
./nixcord.nix
|
||||||
./kodi.nix
|
|
||||||
./other.nix
|
./other.nix
|
||||||
|
./xdg.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
14
home/programs/foot.nix
Normal file
14
home/programs/foot.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
programs.foot = {
|
||||||
|
enable = true;
|
||||||
|
settings = {};
|
||||||
|
};
|
||||||
|
|
||||||
|
xdg.desktopEntries = builtins.listToAttrs (map (x: {
|
||||||
|
name = "${x}";
|
||||||
|
value = {
|
||||||
|
name = "";
|
||||||
|
noDisplay = true;
|
||||||
|
};
|
||||||
|
}) ["footclient" "foot-server"]);
|
||||||
|
}
|
||||||
61
home/programs/xdg.nix
Normal file
61
home/programs/xdg.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
{
|
||||||
|
xdg.mimeApps = let
|
||||||
|
browser = "firefox.desktop";
|
||||||
|
fileManager = "yazi.desktop";
|
||||||
|
mailer = "thunderbird.desktop";
|
||||||
|
photoedit = "gimp.desktop";
|
||||||
|
vectoredit = "org.inkscape.Inkscape.desktop";
|
||||||
|
modeledit = "BambuStudio.desktop";
|
||||||
|
textedit = "nvim.desktop";
|
||||||
|
mediaviewer = "mpv.desktop";
|
||||||
|
|
||||||
|
associations = {
|
||||||
|
"text/html" = browser;
|
||||||
|
"x-scheme-handler/http" = browser;
|
||||||
|
"x-scheme-handler/https" = browser;
|
||||||
|
"x-scheme-handler/ftp" = browser;
|
||||||
|
"x-scheme-handler/about" = browser;
|
||||||
|
"x-scheme-handler/unknown" = browser;
|
||||||
|
"application/xhtml+xml" = browser;
|
||||||
|
"application/x-extension-htm" = browser;
|
||||||
|
"application/x-extension-html" = browser;
|
||||||
|
"application/x-extension-shtml" = browser;
|
||||||
|
"application/x-extension-xhtml" = browser;
|
||||||
|
"application/x-extension-xht" = browser;
|
||||||
|
"application/json" = browser;
|
||||||
|
"application/pdf" = browser;
|
||||||
|
|
||||||
|
"model/3mf" = modeledit;
|
||||||
|
"model/stl" = modeledit;
|
||||||
|
"inode/directory" = fileManager;
|
||||||
|
"text/*" = textedit;
|
||||||
|
# "application/x-xz-compressed-tar" = ["org.kde.ark.desktop"];
|
||||||
|
|
||||||
|
"audio/*" = mediaviewer;
|
||||||
|
"video/*" = mediaviewer;
|
||||||
|
"image/*" = mediaviewer;
|
||||||
|
"image/vnd.adobe.photoshop" = photoedit;
|
||||||
|
"image/vnd.microsoft.icon" = photoedit;
|
||||||
|
"image/vnd.zbrush.pcx" = photoedit;
|
||||||
|
"image/x-gimp-gbr" = photoedit;
|
||||||
|
"image/x-gimp-gih" = photoedit;
|
||||||
|
"image/x-gimp-pat" = photoedit;
|
||||||
|
"application/illustrator" = vectoredit;
|
||||||
|
"application/vnd.corel-draw" = vectoredit;
|
||||||
|
"application/vnd.visio" = vectoredit;
|
||||||
|
|
||||||
|
"x-scheme-handler/mailto" = mailer;
|
||||||
|
"text/calendar" = mailer;
|
||||||
|
"text/vcard" = mailer;
|
||||||
|
|
||||||
|
"x-scheme-handler/discord" = ["vesktop.desktop"];
|
||||||
|
"x-scheme-handler/sgnl" = ["signal.desktop"];
|
||||||
|
"x-scheme-handler/signalcaptcha" = ["signal.desktop"];
|
||||||
|
"x-scheme-handler/spotify" = ["spotify.desktop"];
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
|
associations.added = associations;
|
||||||
|
defaultApplications = associations;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,7 @@ in {
|
||||||
./hyprland
|
./hyprland
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./mako.nix
|
./mako.nix
|
||||||
|
./tofi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = mkIf cfg [
|
home.packages = mkIf cfg [
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,15 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
inherit (lib) getExe;
|
||||||
|
in {
|
||||||
programs.fuzzel = {
|
programs.fuzzel = {
|
||||||
inherit (osConfig.programs.hyprland) enable;
|
enable = false; #NOTE: Fuzzel is disabled.
|
||||||
|
# inherit (osConfig.programs.hyprland) enable;
|
||||||
settings.main = {
|
settings.main = {
|
||||||
launch-prefix = "${lib.getExe pkgs.uwsm} app --";
|
launch-prefix = "${lib.getExe pkgs.uwsm} app --";
|
||||||
|
terminal = "${getExe pkgs.foot}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@
|
||||||
termappE = termappE: termapp (getExe termappE);
|
termappE = termappE: termapp (getExe termappE);
|
||||||
|
|
||||||
foot = appE config.programs.foot.package;
|
foot = appE config.programs.foot.package;
|
||||||
fuzzel = appE config.programs.fuzzel.package;
|
# fuzzel = appE config.programs.fuzzel.package; #NOTE: Fuzzel is disabled
|
||||||
|
tofi = "sh -c '${uwsm} app -- $(${config.programs.tofi.package}/bin/tofi-drun)'";
|
||||||
firefox = appE config.programs.firefox.package;
|
firefox = appE config.programs.firefox.package;
|
||||||
playerctl = appE pkgs.playerctl;
|
playerctl = appE pkgs.playerctl;
|
||||||
brightnessctl = appE pkgs.brightnessctl;
|
brightnessctl = appE pkgs.brightnessctl;
|
||||||
|
|
@ -82,7 +83,8 @@ in {
|
||||||
"$m, O, pseudo,"
|
"$m, O, pseudo,"
|
||||||
"$m ALT, ,resizeactive,"
|
"$m ALT, ,resizeactive,"
|
||||||
|
|
||||||
"$m, D, exec, ${fuzzel}"
|
# "$m, D, exec, ${fuzzel}" #NOTE: Fuzzel is disabled
|
||||||
|
"$m, D, exec, ${tofi}"
|
||||||
"$m, Return, exec, ${foot}"
|
"$m, Return, exec, ${foot}"
|
||||||
"$m Shift, Return, exec, ${firefox}"
|
"$m Shift, Return, exec, ${firefox}"
|
||||||
"$m, Escape, exec, ${hyprlock}"
|
"$m, Escape, exec, ${hyprlock}"
|
||||||
|
|
|
||||||
41
home/wayland/tofi.nix
Normal file
41
home/wayland/tofi.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
osConfig,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) getExe;
|
||||||
|
in {
|
||||||
|
programs.tofi = {
|
||||||
|
inherit (osConfig.programs.hyprland) enable;
|
||||||
|
settings = {
|
||||||
|
terminal = "${getExe pkgs.foot}";
|
||||||
|
|
||||||
|
"horizontal" = true;
|
||||||
|
"anchor" = "top";
|
||||||
|
"width" = "100%";
|
||||||
|
"height" = 34;
|
||||||
|
"outline-width" = 0;
|
||||||
|
"border-width" = 0;
|
||||||
|
"min-input-width" = 120;
|
||||||
|
"result-spacing" = 30;
|
||||||
|
"padding-top" = 7;
|
||||||
|
"padding-bottom" = 7;
|
||||||
|
"padding-left" = 20;
|
||||||
|
"padding-right" = 0;
|
||||||
|
"margin-top" = 0;
|
||||||
|
"margin-bottom" = 0;
|
||||||
|
"margin-left" = 15;
|
||||||
|
"margin-right" = 0;
|
||||||
|
"prompt-text" = " ";
|
||||||
|
"prompt-padding" = 30;
|
||||||
|
"prompt-background-padding" = "4, 10";
|
||||||
|
"prompt-background-corner-radius" = 12;
|
||||||
|
"input-background-padding" = "4, 10";
|
||||||
|
"input-background-corner-radius" = 12;
|
||||||
|
"selection-background-padding" = "4, 10";
|
||||||
|
"selection-background-corner-radius" = 12;
|
||||||
|
"clip-to-padding" = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
neovim = true;
|
neovim = true;
|
||||||
desktop = {
|
desktop = {
|
||||||
games = true;
|
games = true;
|
||||||
|
apps = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
hyprland = true; #TODO: flip both, just trying if it works.
|
hyprland = true; #TODO: flip both, just trying if it works.
|
||||||
kde = true;
|
kde = true;
|
||||||
|
|
@ -24,16 +25,16 @@
|
||||||
"HDMI-A-1,1920x1080,2560x540,1"
|
"HDMI-A-1,1920x1080,2560x540,1"
|
||||||
];
|
];
|
||||||
workspace = [
|
workspace = [
|
||||||
"workspace = 1, monitor:DP-3"
|
"1, monitor:DP-3"
|
||||||
"workspace = 2, monitor:DP-3"
|
"2, monitor:DP-3"
|
||||||
"workspace = 3, monitor:DP-3"
|
"3, monitor:DP-3"
|
||||||
"workspace = 4, monitor:HDMI-A-1"
|
"4, monitor:HDMI-A-1"
|
||||||
"workspace = 5, monitor:HDMI-A-1"
|
"5, monitor:HDMI-A-1"
|
||||||
"workspace = 6, monitor:DP-3"
|
"6, monitor:DP-3"
|
||||||
"workspace = 7, monitor:DP-3"
|
"7, monitor:DP-3"
|
||||||
"workspace = 8, monitor:DP-3"
|
"8, monitor:DP-3"
|
||||||
"workspace = 9, monitor:DP-3"
|
"9, monitor:DP-3"
|
||||||
"workspace = 0, monitor:HDMI-A-1"
|
"0, monitor:HDMI-A-1"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
neovim = true;
|
neovim = true;
|
||||||
desktop = {
|
desktop = {
|
||||||
games = true;
|
games = true;
|
||||||
|
apps = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
hyprland = true;
|
hyprland = true;
|
||||||
kde = true;
|
kde = true;
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@
|
||||||
inherit (config) niksos;
|
inherit (config) niksos;
|
||||||
cfg = niksos.hardware.portable;
|
cfg = niksos.hardware.portable;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = lib.mkIf cfg.enable {
|
||||||
services = lib.mkIf cfg.enable {
|
services = {
|
||||||
logind = {
|
logind = {
|
||||||
powerKey = "suspend-then-hibernate";
|
powerKey = "suspend-then-hibernate";
|
||||||
powerKeyLongPress = "poweroff";
|
powerKeyLongPress = "poweroff";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue