Compare commits
4 Commits
1ce7875398
...
c770b16254
Author | SHA1 | Date | |
---|---|---|---|
c770b16254
|
|||
72cd5d5353
|
|||
76ebdad3ce
|
|||
bd2f725029
|
@ -20,6 +20,8 @@ rec {
|
|||||||
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
monitor1 = ""; # Empty matches all
|
||||||
|
|
||||||
username = "martin";
|
username = "martin";
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
@ -39,6 +39,7 @@ in
|
|||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
brightnessctl
|
||||||
wget
|
wget
|
||||||
xdg-utils
|
xdg-utils
|
||||||
xdg-desktop-portal
|
xdg-desktop-portal
|
||||||
|
@ -11,7 +11,6 @@ in
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
inputs.nixvim.homeManagerModules.nixvim
|
|
||||||
./btop.nix
|
./btop.nix
|
||||||
./cava
|
./cava
|
||||||
./cursors.nix
|
./cursors.nix
|
||||||
@ -27,7 +26,7 @@ in
|
|||||||
./rofi
|
./rofi
|
||||||
./wlogout
|
./wlogout
|
||||||
./hyprland
|
./hyprland
|
||||||
./spicetify.nix
|
./spicetify.nix # TODO env conflict on latest version
|
||||||
./yazi
|
./yazi
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -35,9 +34,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
# Prefer dark mode for all GTK apps
|
# Prefer dark mode for all GTK apps
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||||
color-scheme = "prefer-dark";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
# Neovim configuration for Nix
|
# Neovim configuration for Nix
|
||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
];
|
||||||
|
|
||||||
catppuccin.nvim.enable = true;
|
catppuccin.nvim.enable = true;
|
||||||
|
|
||||||
home.sessionVariables.EDITOR = "nvim";
|
home.sessionVariables.EDITOR = "nvim";
|
||||||
|
@ -1,57 +1,60 @@
|
|||||||
{
|
{
|
||||||
programs.fastfetch = {
|
programs = {
|
||||||
enable = true;
|
fish.shellAliases.fetch = "fastfetch";
|
||||||
settings = {
|
fastfetch = {
|
||||||
logo = {
|
enable = true;
|
||||||
source = "${../Catppuccin.png}";
|
settings = {
|
||||||
type = "kitty";
|
logo = {
|
||||||
height = 18;
|
source = "${../Catppuccin.png}";
|
||||||
padding.top = 2;
|
type = "kitty";
|
||||||
|
height = 18;
|
||||||
|
padding.top = 2;
|
||||||
|
};
|
||||||
|
display.separator = " ";
|
||||||
|
modules =
|
||||||
|
let
|
||||||
|
keyColor = "34";
|
||||||
|
module = type: key: {
|
||||||
|
inherit type key keyColor;
|
||||||
|
};
|
||||||
|
formatModule = type: key: format: {
|
||||||
|
inherit
|
||||||
|
type
|
||||||
|
key
|
||||||
|
format
|
||||||
|
keyColor
|
||||||
|
;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
{
|
||||||
|
type = "title";
|
||||||
|
keyWidth = 10;
|
||||||
|
}
|
||||||
|
"break"
|
||||||
|
(module "os" " ")
|
||||||
|
(module "kernel" " ")
|
||||||
|
(formatModule "packages" " " "{} (nixpkgs)")
|
||||||
|
(module "shell" " ")
|
||||||
|
(module "terminal" " ")
|
||||||
|
(module "wm" " ")
|
||||||
|
(module "theme" " ")
|
||||||
|
(module "cursor" " ")
|
||||||
|
(module "terminalfont" " ")
|
||||||
|
(module "uptime" " ")
|
||||||
|
(formatModule "datetime" " " "{1}-{3}-{11}")
|
||||||
|
(module "cpu" " ")
|
||||||
|
(module "gpu" " ")
|
||||||
|
(module "sound" " ")
|
||||||
|
(module "lm" " ")
|
||||||
|
"break"
|
||||||
|
"colors"
|
||||||
|
"break"
|
||||||
|
"break"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
display.separator = " ";
|
|
||||||
modules =
|
|
||||||
let
|
|
||||||
keyColor = "34";
|
|
||||||
module = type: key: {
|
|
||||||
inherit type key keyColor;
|
|
||||||
};
|
|
||||||
formatModule = type: key: format: {
|
|
||||||
inherit
|
|
||||||
type
|
|
||||||
key
|
|
||||||
format
|
|
||||||
keyColor
|
|
||||||
;
|
|
||||||
};
|
|
||||||
in
|
|
||||||
[
|
|
||||||
"break"
|
|
||||||
"break"
|
|
||||||
{
|
|
||||||
type = "title";
|
|
||||||
keyWidth = 10;
|
|
||||||
}
|
|
||||||
"break"
|
|
||||||
(module "os" " ")
|
|
||||||
(module "kernel" " ")
|
|
||||||
(formatModule "packages" " " "{} (nixpkgs)")
|
|
||||||
(module "shell" " ")
|
|
||||||
(module "terminal" " ")
|
|
||||||
(module "wm" " ")
|
|
||||||
(module "theme" " ")
|
|
||||||
(module "cursor" " ")
|
|
||||||
(module "terminalfont" " ")
|
|
||||||
(module "uptime" " ")
|
|
||||||
(formatModule "datetime" " " "{1}-{3}-{11}")
|
|
||||||
(module "cpu" " ")
|
|
||||||
(module "gpu" " ")
|
|
||||||
(module "sound" " ")
|
|
||||||
(module "lm" " ")
|
|
||||||
"break"
|
|
||||||
"colors"
|
|
||||||
"break"
|
|
||||||
"break"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,15 @@ in
|
|||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Start starship when creating a new shell
|
||||||
|
interactiveShellInit = ''
|
||||||
|
starship init fish | source
|
||||||
|
fortune | cowsay -f tux
|
||||||
|
'';
|
||||||
plugins = [
|
plugins = [
|
||||||
{
|
{
|
||||||
# !! to get the previous command
|
# !! to get the previous command
|
||||||
|
# https://github.com/BrewingWeasel/fishbang
|
||||||
name = "fishbang";
|
name = "fishbang";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
owner = "BrewingWeasel";
|
owner = "BrewingWeasel";
|
||||||
@ -29,6 +35,9 @@ in
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
shellAliases = {
|
||||||
|
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
starship = {
|
starship = {
|
||||||
|
@ -5,6 +5,7 @@ let
|
|||||||
suspendAfter = 7200;
|
suspendAfter = 7200;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [ "hypridle" ];
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# Wallpapers
|
# Wallpapers
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
common = import ../../common.nix;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
hyprpaper
|
hyprpaper
|
||||||
@ -12,7 +15,6 @@
|
|||||||
let
|
let
|
||||||
wallpaperDir = ../../wallpapers;
|
wallpaperDir = ../../wallpapers;
|
||||||
monitor1 = "${wallpaperDir}/nixos_waves.png";
|
monitor1 = "${wallpaperDir}/nixos_waves.png";
|
||||||
monitor2 = "${wallpaperDir}/ekg_v2.png";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
ipc = "on";
|
ipc = "on";
|
||||||
@ -21,12 +23,10 @@
|
|||||||
|
|
||||||
preload = [
|
preload = [
|
||||||
monitor1
|
monitor1
|
||||||
monitor2
|
|
||||||
];
|
];
|
||||||
|
|
||||||
wallpaper = [
|
wallpaper = [
|
||||||
"DP-1,${monitor1}"
|
"${common.monitor1},${monitor1}"
|
||||||
"DP-3,${monitor2}"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -7,16 +7,15 @@ in
|
|||||||
{
|
{
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
monitor = [
|
monitor = [
|
||||||
", 1920x1080@60.05, 0x0, 1"
|
"${common.monitor1}, 1920x1080@60.05, 0x0, 1"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Autostart
|
# Autostart
|
||||||
exec-once = [
|
exec-once = [
|
||||||
app.browser
|
app.browser
|
||||||
app.terminal
|
app.terminal
|
||||||
"hypridle"
|
|
||||||
"systemctl --user start hyprpolkitagent"
|
"systemctl --user start hyprpolkitagent"
|
||||||
"waypaper --restore"
|
"hyprsunset -t 5000" # Set blue light filter
|
||||||
];
|
];
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
|
@ -8,14 +8,18 @@ in
|
|||||||
flavor = theme.flavor;
|
flavor = theme.flavor;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.kitty = {
|
programs = {
|
||||||
enable = common.default.terminal == "kitty";
|
# Transfer shell config to target device
|
||||||
font.name = theme.nerdFont;
|
fish.shellAliases.ssh = "kitty +kitten ssh";
|
||||||
settings = {
|
kitty = {
|
||||||
background_blur = 5;
|
enable = common.default.terminal == "kitty";
|
||||||
background_opacity = 0.8;
|
font.name = theme.nerdFont;
|
||||||
confirm_os_window_close = 0;
|
settings = {
|
||||||
window_padding_width = 10;
|
background_blur = 5;
|
||||||
|
background_opacity = 0.8;
|
||||||
|
confirm_os_window_close = 0;
|
||||||
|
window_padding_width = 10;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -8,13 +8,22 @@
|
|||||||
flavor = theme.flavor;
|
flavor = theme.flavor;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.mpv = {
|
programs = {
|
||||||
enable = true;
|
fish.shellAliases.mpvl = "mpv --profile=loop";
|
||||||
config = {
|
mpv = {
|
||||||
hwdec = "auto-safe";
|
enable = true;
|
||||||
vo = "gpu";
|
config = {
|
||||||
profile = "gpu-hq";
|
hwdec = "auto-safe";
|
||||||
gpu-context = "wayland";
|
vo = "gpu";
|
||||||
|
profile = "gpu-hq";
|
||||||
|
gpu-context = "wayland";
|
||||||
|
};
|
||||||
|
profiles = {
|
||||||
|
loop = {
|
||||||
|
loop-playlist = "inf";
|
||||||
|
loop-file = "inf";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
3
modules/battery.nix
Normal file
3
modules/battery.nix
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
services.upower.enable = true;
|
||||||
|
}
|
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./battery.nix
|
||||||
./development.nix
|
./development.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./gnome
|
./gnome
|
||||||
@ -10,8 +11,8 @@
|
|||||||
./hyprland
|
./hyprland
|
||||||
./sddm.nix
|
./sddm.nix
|
||||||
./security.nix
|
./security.nix
|
||||||
|
./shell.nix
|
||||||
./steam.nix
|
./steam.nix
|
||||||
./terminal
|
|
||||||
./qt.nix
|
./qt.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,8 @@
|
|||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
hyprpolkitagent # Auth deamon providing modals for password auth
|
hyprpolkitagent # Auth deamon providing modals for password auth
|
||||||
hyprshot # Screenshots
|
hyprshot # Screenshots
|
||||||
|
hyprsunset # Blue light filter
|
||||||
|
# unstable.hyprsysteminfo TODO requires flake update
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
19
modules/shell.nix
Normal file
19
modules/shell.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# For Fish dotfiles, see: /home-manager/fish.nix
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs = {
|
||||||
|
bash = {
|
||||||
|
# Starts the OS using Bash, then starts fish if it's not running
|
||||||
|
interactiveShellInit = ''
|
||||||
|
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
||||||
|
then
|
||||||
|
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
||||||
|
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
fish.enable = true;
|
||||||
|
};
|
||||||
|
}
|
@ -1,11 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./shell.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
kitty
|
|
||||||
];
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
# For Fish dotfiles, see: /home-manager/fish.nix and home-manager/starship.nix
|
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
programs = {
|
|
||||||
bash = {
|
|
||||||
# Starts the OS using Bash, then starts fish if it's not running
|
|
||||||
interactiveShellInit = ''
|
|
||||||
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
|
||||||
then
|
|
||||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
|
||||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
|
||||||
fi
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
fish = {
|
|
||||||
enable = true;
|
|
||||||
# Start starship when creating a new shell
|
|
||||||
interactiveShellInit = ''
|
|
||||||
starship init fish | source
|
|
||||||
fortune | cowsay -f tux
|
|
||||||
'';
|
|
||||||
shellAliases = {
|
|
||||||
# Transfer shell config to target device
|
|
||||||
ssh = "kitty +kitten ssh";
|
|
||||||
nix-shell = "nix-shell --run fish"; # Start nix-shells using fishcd
|
|
||||||
fetch = "fastfetch";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
Reference in New Issue
Block a user