fa-t14-2025: update to nixos 26.05
Includes corresponding updates to home/hypr and home/waybar
This commit is contained in:
+48
-14
@@ -1,4 +1,9 @@
|
|||||||
{ lib, config, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
systemd.enable = false; # Required for UWSM
|
systemd.enable = false; # Required for UWSM
|
||||||
@@ -18,16 +23,27 @@
|
|||||||
''
|
''
|
||||||
+
|
+
|
||||||
|
|
||||||
lib.concatMapStringsSep "\n" (cmd: ''hl.exec_cmd("${cmd}")'') [
|
lib.concatMapStringsSep "\n" (cmd: ''hl.exec_cmd("${cmd}")'') (
|
||||||
"swaync"
|
[
|
||||||
"hyprswitch init --size-factor 5 &"
|
"swaync"
|
||||||
"wl-paste --type text --watch cliphist store #Stores only text data"
|
"hyprswitch init --size-factor 5 &"
|
||||||
"wl-paste --type image --watch cliphist store #Stores only image data"
|
"wl-paste --type text --watch cliphist store #Stores only text data"
|
||||||
# TODO: the hyprpaper hm-module still generates the old config format, use ipc temporarily
|
"wl-paste --type image --watch cliphist store #Stores only image data"
|
||||||
"hyprctl hyprpaper wallpaper 'DP-1, ${wpDir}/Ultrawide_Stray_City.png'"
|
]
|
||||||
"hyprctl hyprpaper wallpaper 'DP-2, ${wpDir}/cyberpunk-gas-station-1.jpg'"
|
++ (
|
||||||
]
|
{
|
||||||
|
# TODO: the hyprpaper hm-module still generates the old config format, use ipc temporarily
|
||||||
|
"sisko" = [
|
||||||
|
"hyprctl hyprpaper wallpaper 'DP-1, ${wpDir}/Ultrawide_Stray_City.png'"
|
||||||
|
"hyprctl hyprpaper wallpaper 'DP-2, ${wpDir}/cyberpunk-gas-station-1.jpg'"
|
||||||
|
];
|
||||||
|
"fa-t14-2025" = [
|
||||||
|
"hyprctl hyprpaper wallpaper ', ${wpDir}/mktv-wallpaper-01.png'"
|
||||||
|
];
|
||||||
|
}
|
||||||
|
."${osConfig.networking.hostName}"
|
||||||
|
)
|
||||||
|
)
|
||||||
+ ''
|
+ ''
|
||||||
end
|
end
|
||||||
''
|
''
|
||||||
@@ -52,7 +68,25 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
# fa-t14-2025
|
# fa-t14-2025
|
||||||
# TODO
|
{
|
||||||
|
output = "desc:Lenovo Group Limited 0x403D";
|
||||||
|
mode = "highres@highrr";
|
||||||
|
position = "0x0";
|
||||||
|
scale = "1";
|
||||||
|
supports_hdr = 1;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
output = "desc:Samsung Electric Company LS32D70xE HK2XC00156";
|
||||||
|
mode = "3840x2160@30.00";
|
||||||
|
position = "-3840x0";
|
||||||
|
scale = "1";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
output = "desc:Samsung Electric Company C24F390 H4ZM501656";
|
||||||
|
mode = "1920x1080@60.00";
|
||||||
|
position = "-5760x0";
|
||||||
|
scale = "1";
|
||||||
|
}
|
||||||
|
|
||||||
# Other
|
# Other
|
||||||
{
|
{
|
||||||
@@ -126,8 +160,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
input = {
|
input = {
|
||||||
kb_layout = "us";
|
kb_layout = lib.mkDefault "us";
|
||||||
kb_variant = "intl";
|
kb_variant = lib.mkDefault "intl";
|
||||||
kb_model = "";
|
kb_model = "";
|
||||||
kb_options = "ctrl:nocaps";
|
kb_options = "ctrl:nocaps";
|
||||||
kb_rules = "";
|
kb_rules = "";
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ in
|
|||||||
"tray"
|
"tray"
|
||||||
"network"
|
"network"
|
||||||
"pulseaudio"
|
"pulseaudio"
|
||||||
|
"battery"
|
||||||
"clock#date"
|
"clock#date"
|
||||||
"clock"
|
"clock"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
../../base.nix
|
||||||
../../base.nix
|
./hardware-configuration.nix
|
||||||
./hardware-configuration.nix
|
|
||||||
|
|
||||||
./desktop.nix
|
./desktop.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
@@ -49,10 +53,13 @@
|
|||||||
console.keyMap = "no";
|
console.keyMap = "no";
|
||||||
|
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
allowUnfreePredicate =
|
||||||
"securecrt"
|
pkg:
|
||||||
"securefx"
|
builtins.elem (lib.getName pkg) [
|
||||||
];
|
"microsoft-edge"
|
||||||
|
"securecrt"
|
||||||
|
"securefx"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "25.05";
|
system.stateVersion = "25.05";
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
{ config, pkgs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
hardware.graphics.enable = true;
|
hardware.graphics.enable = true;
|
||||||
services.xserver = {
|
services.xserver = {
|
||||||
@@ -12,7 +17,9 @@
|
|||||||
services.gnome.gnome-keyring.enable = true;
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
programs.hyprland = {
|
programs.hyprland = {
|
||||||
|
# See configuration (through home-manager) in home/hypr
|
||||||
enable = true;
|
enable = true;
|
||||||
|
withUWSM = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+30
-24
@@ -1,10 +1,13 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
emailAddress = "felix.albrigtsen@mktv.no";
|
emailAddress = "felix.albrigtsen@mktv.no";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./../../home/base.nix
|
./../../home/base.nix
|
||||||
./../../home/alacritty.nix
|
./../../home/alacritty.nix
|
||||||
|
./../../home/waybar.nix
|
||||||
|
./../../home/hypr
|
||||||
];
|
];
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
@@ -19,7 +22,9 @@ in {
|
|||||||
iperf3
|
iperf3
|
||||||
jq
|
jq
|
||||||
libreoffice
|
libreoffice
|
||||||
|
microsoft-edge
|
||||||
mpv
|
mpv
|
||||||
|
nixpkgs-2211.remmina
|
||||||
oauth2ms
|
oauth2ms
|
||||||
oldssh
|
oldssh
|
||||||
openssl
|
openssl
|
||||||
@@ -29,43 +34,42 @@ in {
|
|||||||
traceroute
|
traceroute
|
||||||
virt-manager
|
virt-manager
|
||||||
w3m
|
w3m
|
||||||
nixpkgs-2211.remmina
|
|
||||||
|
|
||||||
unstable.microsoft-edge
|
|
||||||
# (unstable.microsoft-edge.overrideAttrs ({ installPhase ? "", ... }: {
|
|
||||||
# installPhase = installPhase + ''
|
|
||||||
# ln -s $out/bin/microsoft-edge $out/bin/microsoft-edge-stable
|
|
||||||
# '';
|
|
||||||
# }))
|
|
||||||
|
|
||||||
# Window Manager Extras
|
# Window Manager Extras
|
||||||
bibata-cursors
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
cliphist
|
cliphist
|
||||||
hyprcursor
|
|
||||||
hypridle
|
|
||||||
hyprlock
|
|
||||||
hyprpaper
|
|
||||||
hyprshot
|
|
||||||
nautilus
|
nautilus
|
||||||
rofi-rbw-wayland
|
rofi-rbw-wayland
|
||||||
swaynotificationcenter
|
swaynotificationcenter
|
||||||
waybar
|
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
|
||||||
(python312.withPackages (ps: with ps; [
|
(python312.withPackages (
|
||||||
numpy
|
ps: with ps; [
|
||||||
pycryptodome
|
numpy
|
||||||
requests
|
pycryptodome
|
||||||
]))
|
requests
|
||||||
|
]
|
||||||
|
))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
# Override settings from home/hypr/hyprland.nix
|
||||||
|
settings.config.input = {
|
||||||
|
kb_layout = "no";
|
||||||
|
kb_variant = "";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
aerc = {
|
aerc = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.aerc;
|
package = pkgs.aerc;
|
||||||
};
|
};
|
||||||
firefox.enable = true;
|
firefox = {
|
||||||
|
enable = true;
|
||||||
|
configPath = ".mozilla/firefox"; # Old default before 26.05
|
||||||
|
};
|
||||||
git.settings.user.email = emailAddress;
|
git.settings.user.email = emailAddress;
|
||||||
rbw = {
|
rbw = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -73,7 +77,7 @@ in {
|
|||||||
base_url = "https://vault.mktv.no";
|
base_url = "https://vault.mktv.no";
|
||||||
email = emailAddress;
|
email = emailAddress;
|
||||||
pinentry = pkgs.pinentry-rofi;
|
pinentry = pkgs.pinentry-rofi;
|
||||||
lock_timeout = 60*60*8;
|
lock_timeout = 60 * 60 * 8;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
rofi = {
|
rofi = {
|
||||||
@@ -81,10 +85,12 @@ in {
|
|||||||
# theme = "iggy";
|
# theme = "iggy";
|
||||||
theme = "Arc-Dark";
|
theme = "Arc-Dark";
|
||||||
};
|
};
|
||||||
|
waybar.enable = true;
|
||||||
zsh = {
|
zsh = {
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
"kssh" = "ssh -t controlnode ssh";
|
"kssh" = "ssh -t controlnode ssh";
|
||||||
"ossh" = "oldssh -oHostKeyAlgorithms=+ssh-dss -oCiphers=+aes256-cbc -oKexAlgorithms=+diffie-hellman-group14-sha1";
|
"ossh" =
|
||||||
|
"oldssh -oHostKeyAlgorithms=+ssh-dss -oCiphers=+aes256-cbc -oKexAlgorithms=+diffie-hellman-group14-sha1";
|
||||||
"rebuild" = "sudo nixos-rebuild switch --flake /config";
|
"rebuild" = "sudo nixos-rebuild switch --flake /config";
|
||||||
};
|
};
|
||||||
prezto.pmodules = [ "ssh" ];
|
prezto.pmodules = [ "ssh" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user