Compare commits
No commits in common. "89acd3e5cb08587d908d8e2a3b5f8099c351da86" and "1133e01eff3efebedb8833b032825bc7d8833ffb" have entirely different histories.
89acd3e5cb
...
1133e01eff
24
common.nix
24
common.nix
@ -1,26 +1,16 @@
|
|||||||
rec {
|
rec {
|
||||||
default = {
|
|
||||||
browser = "io.github.zen_browser.zen.desktop";
|
|
||||||
calculator = "gnome-calculator";
|
|
||||||
fileManager = "nautilus";
|
|
||||||
imageViewer = "org.gnome.Loupe.desktop";
|
|
||||||
lockScreen = "hyprlock";
|
|
||||||
terminal = "kitty";
|
|
||||||
};
|
|
||||||
|
|
||||||
dir = {
|
|
||||||
home = "/home/${username}";
|
|
||||||
pictures = "${dir.home}/Pictures";
|
|
||||||
};
|
|
||||||
|
|
||||||
hostname = "nixos";
|
|
||||||
|
|
||||||
keymaps = {
|
keymaps = {
|
||||||
layout = "gb,no";
|
layout = "gb,no";
|
||||||
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
||||||
};
|
};
|
||||||
|
|
||||||
username = "martin";
|
username = "martin";
|
||||||
|
hostname = "nixos";
|
||||||
|
|
||||||
|
dir = {
|
||||||
|
home = "/home/${username}";
|
||||||
|
pictures = "${dir.home}/Pictures";
|
||||||
|
};
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
@ -29,5 +19,5 @@ rec {
|
|||||||
# Before changing this value read the documentation for this option
|
# Before changing this value read the documentation for this option
|
||||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||||
system.version = "24.11";
|
system.version = "24.11";
|
||||||
terminal = default.terminal; # TODO remove
|
terminal = "kitty";
|
||||||
}
|
}
|
||||||
|
22
flake.nix
22
flake.nix
@ -43,19 +43,15 @@
|
|||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager =
|
home-manager = {
|
||||||
let
|
# Backups conflicting files in case of error
|
||||||
common = import ./common.nix;
|
backupFileExtension = "bkp";
|
||||||
in
|
useGlobalPkgs = true;
|
||||||
{
|
useUserPackages = true;
|
||||||
# Backups conflicting files in case of error
|
# Passes inputs as an argument to home-manager
|
||||||
backupFileExtension = "bkp";
|
extraSpecialArgs = { inherit inputs; };
|
||||||
useGlobalPkgs = true;
|
users.martin = import ./home-manager;
|
||||||
useUserPackages = true;
|
};
|
||||||
# Passes inputs as an argument to home-manager
|
|
||||||
extraSpecialArgs = { inherit inputs; };
|
|
||||||
users.${common.username} = import ./home-manager;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
];
|
];
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
# TODO more defaults
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
xdg.mimeApps = {
|
xdg.mimeApps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
let
|
let
|
||||||
common = import ../common.nix;
|
common = import ../common.nix;
|
||||||
username = common.username;
|
username = common.username;
|
||||||
dir = common.dir;
|
homeDir = "/home/${username}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@ -23,10 +23,10 @@ in
|
|||||||
# paths it should manage.
|
# paths it should manage.
|
||||||
home = {
|
home = {
|
||||||
username = username;
|
username = username;
|
||||||
homeDirectory = dir.home;
|
homeDirectory = homeDir;
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
XDG_PICTURES_DIR = dir.pictures; # Define the default dir for pictures
|
XDG_PICTURES_DIR = "${homeDir}/Pictures";
|
||||||
};
|
};
|
||||||
|
|
||||||
# You can update Home Manager without changing this value. See
|
# You can update Home Manager without changing this value. See
|
||||||
@ -36,24 +36,16 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
btop.enable = true;
|
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Martin Berg Alstad";
|
userName = "Martin Berg Alstad";
|
||||||
userEmail = "git@martials.no";
|
userEmail = "git@martials.no";
|
||||||
extraConfig = {
|
|
||||||
push.autoSetupRemote = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
home-manager.enable = true;
|
home-manager.enable = true;
|
||||||
|
|
||||||
kitty = {
|
kitty.enable = true;
|
||||||
enable = common.terminal == "kitty";
|
|
||||||
settings.window_padding_width = 10;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
@ -1,13 +1,5 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
replace =
|
|
||||||
from: to: current:
|
|
||||||
if current == from then to else current;
|
|
||||||
toSingleLine =
|
|
||||||
with lib.strings;
|
|
||||||
s: concatMapStrings (stringAsChars (replace "\n" "")) (splitString "n" s);
|
|
||||||
theme = import ../theme.nix;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = {
|
||||||
@ -26,173 +18,9 @@ in
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO catppuccin colours on all parts
|
|
||||||
starship = {
|
starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = (with builtins; fromTOML (readFile ./starship.toml)) // { };
|
||||||
format = toSingleLine ''
|
|
||||||
[](#${theme.mantleAlpha})
|
|
||||||
$os
|
|
||||||
$username
|
|
||||||
[](bg:#${theme.lavenderAlpha} fg:#${theme.mantleAlpha})
|
|
||||||
$directory
|
|
||||||
[](fg:#${theme.lavenderAlpha} bg:#${theme.blueAlpha})
|
|
||||||
$git_branch
|
|
||||||
$git_status
|
|
||||||
[](fg:#${theme.blueAlpha} bg:#86BBD8)
|
|
||||||
$c
|
|
||||||
$elixir
|
|
||||||
$elm
|
|
||||||
$golang
|
|
||||||
$gradle
|
|
||||||
$haskell
|
|
||||||
$java
|
|
||||||
$julia
|
|
||||||
$nodejs
|
|
||||||
$nim
|
|
||||||
$rust
|
|
||||||
$scala
|
|
||||||
[](fg:#86BBD8 bg:#06969A)
|
|
||||||
$docker_context
|
|
||||||
[](fg:#06969A bg:#33658A)
|
|
||||||
$time
|
|
||||||
[ ](fg:#33658A)
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Disable the blank line at the start of the prompt
|
|
||||||
# add_newline = false
|
|
||||||
|
|
||||||
# You can also replace your username with a neat symbol like or disable this
|
|
||||||
# and use the os module below
|
|
||||||
username = {
|
|
||||||
show_always = false;
|
|
||||||
style_user = "bg:#${theme.crustAlpha}";
|
|
||||||
style_root = "bg:#${theme.mantleAlpha}";
|
|
||||||
format = "[$user]($style) in ";
|
|
||||||
disabled = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
os = {
|
|
||||||
style = "bg:#${theme.mantleAlpha}";
|
|
||||||
disabled = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
directory = {
|
|
||||||
style = "bg:#${theme.lavenderAlpha} fg:#${theme.baseAlpha}";
|
|
||||||
format = "[ $path ]($style)";
|
|
||||||
truncation_length = 3;
|
|
||||||
truncation_symbol = "…/";
|
|
||||||
};
|
|
||||||
|
|
||||||
# Here is how you can shorten some long paths by text replacement
|
|
||||||
# similar to mapped_locations in Oh My Posh:
|
|
||||||
directory.substitutions = {
|
|
||||||
"Documents" = " ";
|
|
||||||
"Downloads" = " ";
|
|
||||||
"Music" = " ";
|
|
||||||
"Pictures" = " ";
|
|
||||||
};
|
|
||||||
# Keep in mind that the order matters. For example:
|
|
||||||
# "Important Documents" = " "
|
|
||||||
# will not be replaced, because "Documents" was already substituted before.
|
|
||||||
# So either put "Important Documents" before "Documents" or use the substituted version:
|
|
||||||
# "Important " = " "
|
|
||||||
|
|
||||||
c = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
docker_context = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#06969A";
|
|
||||||
format = "[ $symbol $context ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
elixir = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
elm = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_branch = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#${theme.blueAlpha} fg:#${theme.baseAlpha}";
|
|
||||||
format = "[ $symbol $branch ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
git_status = {
|
|
||||||
style = "bg:#${theme.blueAlpha} fg:#${theme.baseAlpha}";
|
|
||||||
format = "[$all_status$ahead_behind ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
golang = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
gradle = {
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
haskell = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
java = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
julia = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
nodejs = {
|
|
||||||
symbol = "";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
nim = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
rust = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
scala = {
|
|
||||||
symbol = " ";
|
|
||||||
style = "bg:#86BBD8";
|
|
||||||
format = "[ $symbol ($version) ]($style)";
|
|
||||||
};
|
|
||||||
|
|
||||||
time = {
|
|
||||||
disabled = false;
|
|
||||||
time_format = "%R"; # Hour:Minute Format
|
|
||||||
style = "bg:#33658A";
|
|
||||||
format = "[ $time ]($style)";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,20 @@
|
|||||||
let
|
|
||||||
common = import ../../common.nix;
|
|
||||||
app = common.default;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
# TODO binds to move focused window
|
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
"$mainMod" = "SUPER";
|
"$mainMod" = "SUPER";
|
||||||
"$shiftMod" = "$mainMod SHIFT";
|
"$shiftMod" = "$mainMod SHIFT";
|
||||||
"$menu" = "rofi -show drun";
|
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
"$mainMod, Q, exec, ${app.terminal}"
|
"$mainMod, Q, exec, $terminal"
|
||||||
"$mainMod, C, killactive,"
|
"$mainMod, C, killactive,"
|
||||||
"$shiftMod, M, exit,"
|
"$shiftMod, M, exit,"
|
||||||
"$mainMod, E, exec, ${app.fileManager}"
|
"$mainMod, E, exec, $fileManager"
|
||||||
"$mainMod, V, togglefloating,"
|
"$mainMod, V, togglefloating,"
|
||||||
"$mainMod, R, exec, $menu"
|
"$mainMod, R, exec, $menu"
|
||||||
"$mainMod, P, pseudo," # dwindle
|
"$mainMod, P, pseudo," # dwindle
|
||||||
"$mainMod, J, togglesplit," # dwindle
|
"$mainMod, J, togglesplit," # dwindle
|
||||||
"$mainMod, B, exec, ${app.browser}"
|
"$mainMod, B, exec, $browser"
|
||||||
"$mainMod, L, exec, ${app.lockScreen}"
|
"$mainMod, L, exec, hyprlock"
|
||||||
"$mainMod, K, exec, [float] ${app.calculator}"
|
"$mainMod, K, exec, [float] gnome-calculator"
|
||||||
"$mainMod, ESC, exec, wlogout"
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
"$mainMod, left, movefocus, l"
|
"$mainMod, left, movefocus, l"
|
||||||
|
@ -11,5 +11,10 @@
|
|||||||
./swaync
|
./swaync
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
btop.enable = true;
|
||||||
|
kitty.settings.window_padding_width = 10;
|
||||||
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland.enable = true;
|
wayland.windowManager.hyprland.enable = true;
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
let
|
let
|
||||||
common = import ../../common.nix;
|
common = import ../../common.nix;
|
||||||
app = common.default;
|
|
||||||
theme = import ../../theme.nix;
|
theme = import ../../theme.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -11,11 +10,16 @@ in
|
|||||||
"DP-3, 2560x1440@59.95, 1920x0, 1"
|
"DP-3, 2560x1440@59.95, 1920x0, 1"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
"$browser" = "io.github.zen_browser.zen";
|
||||||
|
"$terminal" = "kitty";
|
||||||
|
"$fileManager" = "nautilus";
|
||||||
|
"$menu" = "rofi -show drun";
|
||||||
|
|
||||||
# Autostart
|
# Autostart
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"${app.browser}"
|
"$browser"
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
"${app.terminal}"
|
"$terminal"
|
||||||
"hypridle"
|
"hypridle"
|
||||||
"systemctl --user start hyprpolkitagent"
|
"systemctl --user start hyprpolkitagent"
|
||||||
"swaync"
|
"swaync"
|
||||||
|
@ -10,7 +10,7 @@ in
|
|||||||
* {
|
* {
|
||||||
all: unset;
|
all: unset;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-family: "${theme.nerdFont} Nerd Font", monospace;
|
font-family: "JetBrains Mono", monospace;
|
||||||
transition: 200ms;
|
transition: 200ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
# Neovim configuration for Nix
|
# Neovim configuration for Nix
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
174
home-manager/starship.toml
Normal file
174
home-manager/starship.toml
Normal file
@ -0,0 +1,174 @@
|
|||||||
|
"$schema" = 'https://starship.rs/config-schema.json'
|
||||||
|
|
||||||
|
palette = "catppuccin_mocha"
|
||||||
|
|
||||||
|
format = """
|
||||||
|
[](mantle)\
|
||||||
|
$os\
|
||||||
|
$username\
|
||||||
|
[](bg:lavender fg:mantle)\
|
||||||
|
$directory\
|
||||||
|
[](fg:lavender bg:blue)\
|
||||||
|
$git_branch\
|
||||||
|
$git_status\
|
||||||
|
[](fg:blue bg:#86BBD8)\
|
||||||
|
$c\
|
||||||
|
$elixir\
|
||||||
|
$elm\
|
||||||
|
$golang\
|
||||||
|
$gradle\
|
||||||
|
$haskell\
|
||||||
|
$java\
|
||||||
|
$julia\
|
||||||
|
$nodejs\
|
||||||
|
$nim\
|
||||||
|
$rust\
|
||||||
|
$scala\
|
||||||
|
[](fg:#86BBD8 bg:#06969A)\
|
||||||
|
$docker_context\
|
||||||
|
[](fg:#06969A bg:#33658A)\
|
||||||
|
$time\
|
||||||
|
[ ](fg:#33658A)\
|
||||||
|
"""
|
||||||
|
|
||||||
|
# Disable the blank line at the start of the prompt
|
||||||
|
# add_newline = false
|
||||||
|
|
||||||
|
[palettes.catppuccin_mocha]
|
||||||
|
rosewater = "#f5e0dc"
|
||||||
|
flamingo = "#f2cdcd"
|
||||||
|
pink = "#f5c2e7"
|
||||||
|
mauve = "#cba6f7"
|
||||||
|
red = "#f38ba8"
|
||||||
|
maroon = "#eba0ac"
|
||||||
|
peach = "#fab387"
|
||||||
|
yellow = "#f9e2af"
|
||||||
|
green = "#a6e3a1"
|
||||||
|
teal = "#94e2d5"
|
||||||
|
sky = "#89dceb"
|
||||||
|
sapphire = "#74c7ec"
|
||||||
|
blue = "#89b4fa"
|
||||||
|
lavender = "#b4befe"
|
||||||
|
text = "#cdd6f4"
|
||||||
|
subtext1 = "#bac2de"
|
||||||
|
subtext0 = "#a6adc8"
|
||||||
|
overlay2 = "#9399b2"
|
||||||
|
overlay1 = "#7f849c"
|
||||||
|
overlay0 = "#6c7086"
|
||||||
|
surface2 = "#585b70"
|
||||||
|
surface1 = "#45475a"
|
||||||
|
surface0 = "#313244"
|
||||||
|
base = "#1e1e2e"
|
||||||
|
mantle = "#181825"
|
||||||
|
crust = "#11111b"
|
||||||
|
|
||||||
|
# You can also replace your username with a neat symbol like or disable this
|
||||||
|
# and use the os module below
|
||||||
|
[username]
|
||||||
|
show_always = false
|
||||||
|
style_user = "bg:crust"
|
||||||
|
style_root = "bg:mantle"
|
||||||
|
format = "[$user]($style) in "
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[os]
|
||||||
|
style = "bg:mantle"
|
||||||
|
disabled = false
|
||||||
|
|
||||||
|
[directory]
|
||||||
|
style = "bg:lavender fg:base"
|
||||||
|
format = "[ $path ]($style)"
|
||||||
|
truncation_length = 3
|
||||||
|
truncation_symbol = "…/"
|
||||||
|
|
||||||
|
# Here is how you can shorten some long paths by text replacement
|
||||||
|
# similar to mapped_locations in Oh My Posh:
|
||||||
|
[directory.substitutions]
|
||||||
|
"Documents" = " "
|
||||||
|
"Downloads" = " "
|
||||||
|
"Music" = " "
|
||||||
|
"Pictures" = " "
|
||||||
|
# Keep in mind that the order matters. For example:
|
||||||
|
# "Important Documents" = " "
|
||||||
|
# will not be replaced, because "Documents" was already substituted before.
|
||||||
|
# So either put "Important Documents" before "Documents" or use the substituted version:
|
||||||
|
# "Important " = " "
|
||||||
|
|
||||||
|
[c]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[docker_context]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#06969A"
|
||||||
|
format = '[ $symbol $context ]($style)'
|
||||||
|
|
||||||
|
[elixir]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[elm]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[git_branch]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:blue fg:base"
|
||||||
|
format = '[ $symbol $branch ]($style)'
|
||||||
|
|
||||||
|
[git_status]
|
||||||
|
style = "bg:blue fg:base"
|
||||||
|
format = '[$all_status$ahead_behind ]($style)'
|
||||||
|
|
||||||
|
[golang]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[gradle]
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[haskell]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[java]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[julia]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nodejs]
|
||||||
|
symbol = ""
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[nim]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[scala]
|
||||||
|
symbol = " "
|
||||||
|
style = "bg:#86BBD8"
|
||||||
|
format = '[ $symbol ($version) ]($style)'
|
||||||
|
|
||||||
|
[time]
|
||||||
|
disabled = false
|
||||||
|
time_format = "%R" # Hour:Minute Format
|
||||||
|
style = "bg:#33658A"
|
||||||
|
format = '[ $time ]($style)'
|
@ -1,17 +1,15 @@
|
|||||||
# Log out and shutdown menu
|
# Log out and shutdown menu
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.file =
|
home.file = {
|
||||||
let
|
".config/wlogout/hibernate.svg".source = ./hibernate.svg;
|
||||||
dir = ".config/wlogout";
|
".config/wlogout/lock.svg".source = ./lock.svg;
|
||||||
in
|
".config/wlogout/logout.svg".source = ./logout.svg;
|
||||||
{
|
".config/wlogout/reboot.svg".source = ./reboot.svg;
|
||||||
"${dir}/hibernate.svg".source = ./hibernate.svg;
|
".config/wlogout/shutdown.svg".source = ./shutdown.svg;
|
||||||
"${dir}/lock.svg".source = ./lock.svg;
|
".config/wlogout/suspend.svg".source = ./suspend.svg;
|
||||||
"${dir}/logout.svg".source = ./logout.svg;
|
};
|
||||||
"${dir}/reboot.svg".source = ./reboot.svg;
|
|
||||||
"${dir}/shutdown.svg".source = ./shutdown.svg;
|
|
||||||
"${dir}/suspend.svg".source = ./suspend.svg;
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.wlogout = {
|
programs.wlogout = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -53,64 +51,6 @@
|
|||||||
keybind = "r";
|
keybind = "r";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
style =
|
style = ./style.css;
|
||||||
let
|
|
||||||
theme = import ../../theme.nix;
|
|
||||||
in
|
|
||||||
''
|
|
||||||
* {
|
|
||||||
background-image: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
|
||||||
background-color: rgba(30, 30, 46, 0.9);
|
|
||||||
}
|
|
||||||
|
|
||||||
button {
|
|
||||||
border-radius: 0;
|
|
||||||
border-color: #${theme.pinkAlpha};
|
|
||||||
text-decoration-color: #${theme.textAlpha};
|
|
||||||
color: #${theme.textAlpha};
|
|
||||||
background-color: #${theme.mantleAlpha};
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 1px;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-position: center;
|
|
||||||
background-size: 25%;
|
|
||||||
}
|
|
||||||
|
|
||||||
button:focus,
|
|
||||||
button:active,
|
|
||||||
button:hover {
|
|
||||||
/* 20% Overlay 2, 80% mantle */
|
|
||||||
background-color: rgb(48, 50, 66);
|
|
||||||
outline-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#lock {
|
|
||||||
background-image: url("./lock.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
#logout {
|
|
||||||
background-image: url("./logout.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
#suspend {
|
|
||||||
background-image: url("./suspend.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
#hibernate {
|
|
||||||
background-image: url("./hibernate.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
#shutdown {
|
|
||||||
background-image: url("./shutdown.svg");
|
|
||||||
}
|
|
||||||
|
|
||||||
#reboot {
|
|
||||||
background-image: url("./reboot.svg");
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -5,19 +5,15 @@
|
|||||||
font-awesome # Icons
|
font-awesome # Icons
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts =
|
fonts = {
|
||||||
let
|
fontconfig.enable = true;
|
||||||
theme = import ../theme.nix;
|
packages = with pkgs; [
|
||||||
in
|
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
|
||||||
{
|
jetbrains-mono
|
||||||
fontconfig.enable = true;
|
# The line below will replace the lines above in 25.05
|
||||||
packages = with pkgs; [
|
# nerd-fonts.jetbrains-mono
|
||||||
(nerdfonts.override { fonts = [ theme.nerdFont ]; })
|
font-awesome
|
||||||
jetbrains-mono
|
];
|
||||||
# The line below will replace the lines above in 25.05
|
};
|
||||||
# nerd-fonts.jetbrains-mono
|
|
||||||
font-awesome
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
# TODO move locale config for hyprland here
|
# TODO move locale config for hyprland here
|
||||||
let
|
let
|
||||||
utf-8 = "UTF-8";
|
utf-8 = "UTF-8";
|
||||||
|
@ -17,7 +17,5 @@ in
|
|||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
programs.ssh.enableAskPassword = false;
|
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ in
|
|||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
(catppuccin-sddm.override {
|
(catppuccin-sddm.override {
|
||||||
flavor = flavor;
|
flavor = flavor;
|
||||||
font = theme.nerdFont;
|
font = "JetBrainsMono";
|
||||||
fontSize = "9";
|
fontSize = "9";
|
||||||
background = "${../catppuccin_high.png}";
|
background = "${../catppuccin_high.png}";
|
||||||
loginBackground = true;
|
loginBackground = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user