Compare commits

..

No commits in common. '6aaea6d416e939291c05f95a760c25afb0a659fc' and 'f5d88a6c9c4b5f5ac4ba5fdc7c28e658de201985' have entirely different histories.

  1. BIN
      backgrounds/island_1.jpg
  2. BIN
      backgrounds/island_2.jpg
  3. BIN
      backgrounds/island_3.jpg
  4. 67
      configuration.nix
  5. 66
      disko.nix
  6. 49
      flake.lock
  7. 45
      flake.nix
  8. 12
      greeter.nix
  9. 21
      hardware-configuration.nix
  10. 111
      home.nix
  11. 108
      hyperland/default.nix
  12. 5
      modules/dunst.nix
  13. 8
      modules/ranger.nix
  14. 11
      modules/vscode.nix
  15. 11
      modules/vscodium/default.nix
  16. 104
      modules/vscodium/vscodium.nix
  17. 58
      modules/waybar.nix

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

@ -2,23 +2,16 @@
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
inputs,
pkgs,
ronema,
...
}:
{ config, lib, pkgs, ronema, xdph, ... }:
{
imports = [
# Include the results of the hardware scan.
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
"${
builtins.fetchTarball {
"${builtins.fetchTarball {
url = "https://github.com/nix-community/disko/archive/refs/tags/v1.6.1.tar.gz";
sha256 = "1p9vsml07bm3riw703dv83ihlmgyc11qv882qa6bqzqdgn86y8z4";
}
}/module.nix"
}}/module.nix"
./disko.nix
];
@ -38,16 +31,11 @@
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
networking.networkmanager.plugins = [ pkgs.networkmanager-openvpn ];
networking.networkmanager.dns = "dnsmasq";
# address=/git.christianott.ch/git.christianott.ch/tux.social/woelkli.christianott.ch/office.christianott.ch/192.168.15.4
environment.etc."NetworkManager/dnsmasq.d/00-cave.conf".text = ''
server=/.mibex.ch/172.31.13.27
server=/.communardo.de/192.168.50.75
address=/mail.communardo.de/195.243.59.178
address=/git.christianott.ch/git.christianott.ch/tux.social/woelkli.christianott.ch/office.christianott.ch/192.168.15.4
server=/huus/192.168.15.2
server=192.168.15.2
server=192.168.50.1
server=1.1.1.1
'';
# Set your time zone.
@ -66,17 +54,15 @@
# };
# https://nixos.wiki/wiki/Fonts fonts with icons
fonts.packages = with pkgs; [
font-awesome
nerd-fonts.jetbrains-mono
nerd-fonts.caskaydia-cove
nerd-fonts.fira-code
fonts.packages = with pkgs;
[
(nerdfonts.override {fonts = ["JetBrainsMono" "CascadiaCode" "FiraCode"];})
];
fonts.fontconfig = {
defaultFonts = {
monospace = [ "CaskaydiaCove Nerd Font Mono" ];
sansSerif = [ "CascadiaCode Nerd Font" ];
serif = [ "CascadiaCode Nerd Font" ];
monospace = ["CaskaydiaCove Nerd Font Mono"];
sansSerif = ["CascadiaCode Nerd Font"];
serif = ["CascadiaCode Nerd Font"];
};
};
@ -87,8 +73,8 @@
programs.hyprland.portalPackage = pkgs.xdg-desktop-portal-wlr;
# Enable the GNOME Desktop Environment.
services.displayManager.gdm.enable = false;
services.desktopManager.gnome.enable = true;
services.xserver.displayManager.gdm.enable = false;
services.xserver.desktopManager.gnome.enable = true;
services.fwupd.enable = true;
@ -127,7 +113,7 @@
jack.enable = true;
pulse.enable = true;
};
services.pulseaudio.enable = false;
hardware.pulseaudio.enable = false;
# Enable touchpad support (enabled default in most desktopManager).
services.libinput = {
@ -138,11 +124,7 @@
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.chrigi = {
isNormalUser = true;
extraGroups = [
"wheel"
"networkmanager"
"docker"
];
extraGroups = [ "wheel" "networkmanager" "docker"];
initialPassword = "password";
packages = with pkgs; [
firefox
@ -175,8 +157,7 @@
wget
curl
btop
vscodium-insider
vscodium
pciutils
usbutils
openvpn
@ -193,18 +174,14 @@
};
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "chrigi" ];
polkitPolicyOwners = ["chrigi"];
};
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
security.pam.services.greetd.enableGnomeKeyring = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nix.gc = { automatic = true; dates = "weekly"; options = "--delete-older-than 7d"; };
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
@ -249,11 +226,9 @@
system.stateVersion = "23.11"; # Did you read the comment?
nix = {
# package = pkgs.nix;
settings.experimental-features = [
"nix-command"
"flakes"
];
package = pkgs.nixFlakes;
settings.experimental-features = ["nix-command" "flakes"];
};
}

@ -30,17 +30,9 @@
bypassWorkqueues = true;
keyFile = "/tmp/yk/yk_mini.key";
};
additionalKeyFiles = [
"/tmp/yk/yk_the_big_one.key"
"/tmp/yk/yk_on_key.key"
"/tmp/yk/yk_round.key"
];
additionalKeyFiles = [ "/tmp/yk/yk_the_big_one.key" "/tmp/yk/yk_on_key.key" "/tmp/yk/yk_round.key" ];
# https://github.com/sgillespie/nixos-yubikey-luks
extraFormatArgs = [
"--cipher=aes-xts-plain64"
"--key-size=512"
"--hash=sha512"
];
extraFormatArgs = [ "--cipher=aes-xts-plain64" "--key-size=512" "--hash=sha512" ];
initrdUnlock = false; # we have to add it manually because of the yubikeys
content = {
type = "btrfs";
@ -49,48 +41,23 @@
"/root" = {
mountpoint = "/";
# https://unix.stackexchange.com/questions/752741/what-is-the-mount-option-space-cache-v2
mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
"commit=120"
];
mountOptions = [ "compress=zstd" "noatime" "space_cache=v2" "commit=120"];
};
"/home" = {
mountpoint = "/home";
mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
"commit=120"
];
mountOptions = [ "compress=zstd" "noatime" "space_cache=v2" "commit=120"];
};
"/nix" = {
mountpoint = "/nix";
mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
"commit=120"
];
mountOptions = [ "compress=zstd" "noatime" "space_cache=v2" "commit=120"];
};
"/var" = {
mountpoint = "/var";
mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
"commit=120"
];
mountOptions = [ "compress=zstd" "noatime" "space_cache=v2" "commit=120"];
};
"/docker-btrfs" = {
mountpoint = "/var/lib/docker/btrfs";
mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
"commit=120"
];
mountOptions = [ "compress=zstd" "noatime" "space_cache=v2" "commit=120"];
};
};
};
@ -124,16 +91,8 @@
bypassWorkqueues = true;
keyFile = "/tmp/yk/yk_mini.key";
};
additionalKeyFiles = [
"/tmp/yk/yk_the_big_one.key"
"/tmp/yk/yk_on_key.key"
"/tmp/yk/yk_round.key"
];
extraFormatArgs = [
"--cipher=aes-xts-plain64"
"--key-size=512"
"--hash=sha512"
];
additionalKeyFiles = [ "/tmp/yk/yk_the_big_one.key" "/tmp/yk/yk_on_key.key" "/tmp/yk/yk_round.key" ];
extraFormatArgs = [ "--cipher=aes-xts-plain64" "--key-size=512" "--hash=sha512" ];
initrdUnlock = false; # we have to add it manually because of the yubikeys
content = {
type = "btrfs";
@ -141,12 +100,7 @@
subvolumes = {
"/backup" = {
mountpoint = "/backup";
mountOptions = [
"compress=zstd"
"noatime"
"space_cache=v2"
"commit=120"
];
mountOptions = [ "compress=zstd" "noatime" "space_cache=v2" "commit=120"];
};
};
};

@ -23,11 +23,11 @@
]
},
"locked": {
"lastModified": 1751824240,
"narHash": "sha256-aDDC0CHTlL7QDKWWhdbEgVPK6KwWt+ca0QkmHYZxMzI=",
"lastModified": 1725863684,
"narHash": "sha256-HmdTBpuCsw35Ii35JUKO6AE6nae+kJliQb0XGd4hoLE=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "fd9e55f5fac45a26f6169310afca64d56b681935",
"rev": "be47a2bdf278c57c2d05e747a13ed31cef54a037",
"type": "github"
},
"original": {
@ -132,11 +132,11 @@
},
"nixos-hardware": {
"locked": {
"lastModified": 1751432711,
"narHash": "sha256-136MeWtckSHTN9Z2WRNRdZ8oRP3vyx3L8UxeBYE+J9w=",
"lastModified": 1725716377,
"narHash": "sha256-7NzW9O/cAw7iWzRfh7Oo/SuSudL4a1YTKS6yoh3tMck=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "497ae1357f1ac97f1aea31a4cb74ad0d534ef41f",
"rev": "04a1cda0c1725094a4db703cccbb956b7558f5a6",
"type": "github"
},
"original": {
@ -148,11 +148,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1751637120,
"narHash": "sha256-xVNy/XopSfIG9c46nRmPaKfH1Gn/56vQ8++xWA8itO4=",
"lastModified": 1725634671,
"narHash": "sha256-v3rIhsJBOMLR8e/RNWxr828tB+WywYIoajrZKFM+0Gg=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5c724ed1388e53cc231ed98330a60eb2f7be4be3",
"rev": "574d1eac1c200690e27b8eb4e24887f8df7ac27c",
"type": "github"
},
"original": {
@ -177,22 +177,6 @@
"type": "github"
}
},
"nixpkgs-small": {
"locked": {
"lastModified": 1751743520,
"narHash": "sha256-gk83D6+0KpugopnV6vrumpVHDrqESFjVr39O9u7NNy8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "833775e5731dcd1fd3eb0b61fa7ed2a4fafb4e3e",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable-small",
"repo": "nixpkgs",
"type": "github"
}
},
"ronema": {
"inputs": {
"nixpkgs": [
@ -200,14 +184,16 @@
]
},
"locked": {
"lastModified": 1732525400,
"narHash": "sha256-q051SKAI9oSSkwG998w8J20EaKHV/loopSUTIsbft1M=",
"path": "/home/chrigi/private-dev/rofi-network-manager",
"type": "path"
"dirtyRev": "328bd77536cec39d17b5e5027c5778efeb650fed-dirty",
"dirtyShortRev": "328bd77-dirty",
"lastModified": 1718446613,
"narHash": "sha256-ocRS47pPPjxpLWOtLwSfNnBQh5KT4O/5U5VLGySSodg=",
"type": "git",
"url": "file:///home/chrigi/private-dev/rofi-network-manager"
},
"original": {
"path": "/home/chrigi/private-dev/rofi-network-manager",
"type": "path"
"type": "git",
"url": "file:///home/chrigi/private-dev/rofi-network-manager"
}
},
"root": {
@ -216,7 +202,6 @@
"nix-colors": "nix-colors",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",
"nixpkgs-small": "nixpkgs-small",
"ronema": "ronema",
"xdph": "xdph"
}

@ -3,7 +3,6 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-small.url = "github:nixos/nixpkgs/nixos-unstable-small";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nix-colors.url = "github:misterio77/nix-colors";
xdph = {
@ -11,7 +10,7 @@
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
ronema = {
@ -20,63 +19,33 @@
};
};
outputs =
{
self,
nixpkgs,
nixpkgs-small,
nixos-hardware,
home-manager,
nix-colors,
ronema,
xdph,
...
}@inputs:
outputs = { self, nixpkgs, nixos-hardware, home-manager, nix-colors, ronema, xdph, ... }@inputs:
let
username = "chrigi";
lib = nixpkgs.lib;
system = "x86_64-linux";
nixpkgsDrvRootPath = nixpkgs + "/pkgs/applications/editors/vscode";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(final: prev: {
vscodium-insider = pkgs.callPackage ./modules/vscodium/vscodium.nix { inherit nixpkgsDrvRootPath; };
})
];
};
pkgs-small = import nixpkgs-small {
inherit system;
config.allowUnfree = true;
};
in
{
in {
nixosConfigurations.nix-fw16 = lib.nixosSystem {
specialArgs = {
inherit
inputs
pkgs
ronema
xdph
;
inherit pkgs ronema xdph;
};
modules = [
./configuration.nix
./greeter.nix
nixos-hardware.nixosModules.framework-16-7040-amd
home-manager.nixosModules.home-manager
{
home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.${username} = import ./home.nix;
home-manager.extraSpecialArgs = {
inherit pkgs-small username nix-colors;
};
home-manager.extraSpecialArgs = {inherit username nix-colors; };
}
];
};
};
}

@ -1,9 +1,4 @@
{
config,
pkgs,
lib,
...
}:
{ config, pkgs, lib, ... }:
let
tuigreet = "${pkgs.greetd.tuigreet}/bin/tuigreet";
@ -12,7 +7,7 @@ let
# https://github.com/bytemouse/config/blob/48d9be51a9666c9b62f4b8e84322b9d892ee0aea/modules/gnome.nix#L11
gnome-script = pkgs.writeShellScriptBin "gnome-script" ''
export XDG_SESSION_TYPE=wayland
${pkgs.dbus}/bin/dbus-run-session ${pkgs.gnome-session}/bin/gnome-session
${pkgs.dbus}/bin/dbus-run-session ${pkgs.gnome.gnome-session}/bin/gnome-session
'';
gnome-desktop = pkgs.makeDesktopItem {
name = "gnome-desktop";
@ -21,8 +16,7 @@ let
terminal = true;
};
in
{
in {
services.greetd = {
enable = true;

@ -1,29 +1,18 @@
# Do not modify this file! It was generated by ‘nixos-generate-config’
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{ config, lib, pkgs, modulesPath, ... }:
{
disabledModules = [ "system/boot/luksroot.nix" ];
disabledModules = ["system/boot/luksroot.nix"];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
./my-luksroot.nix
];
boot.initrd = {
kernelModules = [
"vfat"
"nls_cp437"
"nls_iso8859-1"
"usbhid"
];
kernelModules = ["vfat" "nls_cp437" "nls_iso8859-1" "usbhid"];
luks = {
yubikeySupport = true;

@ -1,15 +1,5 @@
{
config,
pkgs,
pkgs-small,
nix-colors,
username,
...
}:
let
{ config, pkgs, nix-colors, username, ... }:
in
{
imports = [
nix-colors.homeManagerModules.default
@ -24,9 +14,10 @@ in
home.username = "${username}";
home.homeDirectory = "/home/${username}";
# Packages that should be installed to the user profile.
home.packages = with pkgs; [
pkgs-small.kitty
kitty
eza
git
git-lfs
@ -34,66 +25,15 @@ in
jq
direnv
kdePackages.okular
zip
ant
tmux
nixd # Nix language server for vscode
nixfmt-rfc-style
skypeforlinux
signal-desktop
teams-for-linux
slack
jetbrains-toolbox
nextcloud-client
pkgs-small.presenterm
font-awesome
nerd-fonts.jetbrains-mono
nerd-fonts.caskaydia-cove
nerd-fonts.fira-code
(pkgs.appimageTools.wrapType2 {
name = "atlassify";
pname = "atlassify";
version = "1.17.0";
src = fetchurl {
url = "https://github.com/setchy/atlassify/releases/download/v1.17.0/Atlassify-1.17.0.AppImage";
hash = "sha256-mfcxrd9axnmQMofth1M5ov2a4ppFE0ga0Gxjwbx2v9o=";
};
extraPkgs =
pkgs:
(appimageTools.defaultFhsEnvArgs.multiPkgs pkgs)
++ [
libsecret
];
})
(pkgs.stdenv.mkDerivation {
pname = "flowkeeper";
version = "0.9.1";
src = pkgs.fetchurl {
url = "https://github.com/flowkeeper-org/fk-desktop/releases/download/v0.9.1/Flowkeeper";
sha256 = "sha256-HCEG7LSM7h2Yz6BbvQ0KdmfYnKZOG+TZxMvE5o8gYiA=";
};
dontUnpack = true;
installPhase = ''
install -Dm755 $src $out/bin/flowkeeper
'';
meta = {
description = "Flowkeeper time tracker";
platforms = pkgs.lib.platforms.linux;
};
})
];
programs.ssh = {
enable = true;
@ -107,49 +47,6 @@ in
enable = true;
lfs.enable = true;
};
programs.bash = {
enable = true;
historyIgnore = [
"l"
"ls"
"ll"
"cd"
"exit"
];
historyControl = [ "erasedups" ];
shellAliases = {
grep = "grep --color=auto";
".." = "cd ..";
"cdm" = "cd ~/mibex-plugins/monorepo";
};
initExtra = ''
# Custom colored bash prompt
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
'';
profileExtra = ''
# Include user's private bin if present
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
'';
};
programs.atuin = {
enable = true;
settings = {
auto_sync = true;
sync_frequency = "5m";
sync_address = "https://atuin.christianott.ch";
search_mode = "fuzzy";
};
};
programs.starship = {
enable = true;
enableBashIntegration = true;
};
# This value determines the home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new home Manager release introduces backwards

@ -1,9 +1,4 @@
{
config,
pkgs,
username,
...
}:
{ config, pkgs, username, ... }:
let
volumeChange = pkgs.writeShellScript "volume-change" ''
# FROM: https://github.com/jsimonrichard/nix-config/blob/master/modules/my-config/desktop/hyprland/home-manager/desktop/hyprland/keybinds.nix
@ -37,40 +32,22 @@ in
networkmanagerapplet
grim
grimblast
swappy
slurp
wl-clipboard
hyprpaper
# (pkgs.waybar.overrideAttrs (oldAttrs: {
# mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];
# }))
];
services.hyprpaper = {
enable = true;
settings = {
ipc = false;
splash = false;
splash_offset = 5;
splash_color = "rgb(ebdbb8)";
preload = [ "$HOME/.nixos-config/backgrounds/island_1.jpg" ];
wallpaper = [ ",$HOME/.nixos-config/backgrounds/island_1.jpg" ];
};
};
programs.hyprlock = {
enable = true;
settings = {
background = {
monitor = "";
# path = screenshot
path = "$HOME/.nixos-config/backgrounds/island_2.jpg";
color = "rgba(152, 179, 166, 0.9)";
blur_passes = 1;
blur_size = 7;
noise = 1.17e-2;
noise = 0.0117;
contrast = 0.8916;
brightness = 0.8172;
vibrancy = 0.1696;
@ -136,56 +113,9 @@ in
};
};
services.hypridle = {
enable = true;
settings = {
general = {
before_sleep_cmd = "loginctl lock-session";
lock_cmd = "${pkgs.procps}/bin/pidof hyprlock || ${pkgs.hyprlock}/bin/hyprlock";
# unlock_cmd = "loginctl unlock-session";
after_sleep_cmd = "hyprctl dispatch dpms on && notify-send \"Back from idle.\" \"Welcome back!\"";
};
listener = [
{
timeout = 5;
on-timeout = "pidof hyprlock && hyprctl dispatch dpms off";
on-resume = "hyprctl dispatch dpms on";
}
{
timeout = 150; # 2.5min.
on-timeout = "light -O && light -S 10"; # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = "light -I"; # monitor backlight restore.
}
{
timeout = 300;
on-timeout = "playerctl pause";
}
{
timeout = 270;
on-timeout = "notify-send \"Idle\" \"You're idle... locking in 30s.\"";
}
{
timeout = 300; # 5min
on-timeout = "loginctl lock-session"; # lock screen when timeout has passed
}
{
timeout = 330; # 5.5min
on-timeout = "hyprctl dispatch dpms off"; # screen off when timeout has passed
on-resume = "hyprctl dispatch dpms on"; # screen on when activity is detected after timeout has fired.
}
{
timeout = 1800; # 30min
on-timeout = "systemctl suspend"; # suspend pc
}
];
};
};
wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.settings = {
monitor = [
monitor=[
"eDP-1,2560x1600@60.00Hz,0x0,1"
"DP-3,preferred,-3840x-560,1"
"DP-2,preferred,auto,1.5"
@ -193,8 +123,7 @@ in
"$mod" = "SUPER";
input = {
kb_options = "compose:rctrl,numpad:mac"; # workaround for split numpad https://github.com/hyprwm/Hyprland/issues/6886
numlock_by_default = true;
kb_options = "compose:rctrl";
};
exec-once = [
"dunst"
@ -202,8 +131,6 @@ in
"${pkgs.networkmanagerapplet}/bin/nm-applet --sm-disable --indicator"
"blueman-applet"
"${pkgs.libsForQt5.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
"systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
"systemctl --user start hyprpaper.service" # they are enabled, but don't start because they try to start before WAYLAND_DISPLAY is set
];
@ -212,6 +139,7 @@ in
"$mod, mouse:273, resizewindow"
];
bind =
[
"$mod, F, exec, firefox"
@ -219,7 +147,6 @@ in
", Print, exec, grimblast copy area"
"$mod, l, exec, hyprlock" # Add a keybinding to lock the screen
"$mod, C, exec, code"
"$mod, P, exec, sleep 2; grim -g \"$(slurp)\" - | swappy -f -"
"$mod, E, exec, hyprctl dispatch exit"
"$mod, r, exec, rofi -show run"
"$mod, code:51, exec, 1password" # super + \
@ -230,24 +157,20 @@ in
++ (
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (
builtins.genList (
x:
let
ws =
let
builtins.concatLists (builtins.genList (
x: let
ws = let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in
[
in [
"$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
]
) 10
)
10)
);
windowrulev2 = [
windowrulev2= [
# https://jbmorley.co.uk/posts/2024-02-13-1password-and-hyprland/
"float, title:(1Password)"
"size 70% 70%, title:(1Password)"
@ -261,15 +184,6 @@ in
"bordercolor rgba(ed8796FF), class:org.kde.polkit-kde-authentication-agent-1"
"dimaround, class:org.kde.polkit-kde-authentication-agent-1"
"stayfocused, class:org.kde.polkit-kde-authentication-agent-1"
# nextcloud
"float,class:(com.nextcloud.desktopclient.nextcloud)"
"size 400 800,class:(com.nextcloud.desktopclient.nextcloud)"
"move 100%-412 44,class:(com.nextcloud.desktopclient.nextcloud)"
# to try if it has sideeffects
"noinitialfocus, initialClass:com.nextcloud.desktopclient.nextcloud"
"noinitialfocus, initialClass:atlassify"
];
# Bind flags
# l -> locked, will also work when an input inhibitor (e.g. a lockscreen) is active.

@ -2,8 +2,7 @@
inputs,
config,
...
}:
{
}:{
services.dunst = {
enable = true;
settings = {
@ -55,7 +54,7 @@
title = "Dunst";
class = "Dunst";
corner_radius = 10;
icon_corner_radius = 5;
icon_corner_radius= 5;
notification_limit = 5;
mouse_left_click = "close_current";
mouse_middle_click = "do_action";

@ -1,4 +1,4 @@
{ pkgs, ... }:
{pkgs, ...}:
{
# stolen from: https://github.com/leoperegrino/.files/blob/d996b31a0b1843f05d0f27123196bfa6d0980caa/home-manager/modules/ranger.nix
programs.ranger = {
@ -7,15 +7,13 @@
pkgs.ueberzugpp
];
extraConfig = "default_linemode devicons";
plugins = [
{
plugins = [{
name = "devicons";
src = builtins.fetchGit {
url = "https://github.com/alexanderjeurissen/ranger_devicons.git";
rev = "a8d626485ca83719e1d8d5e32289cd96a097c861";
};
}
];
}];
settings = {
preview_images_method = "ueberzug";
show_hidden = true;

@ -0,0 +1,11 @@
{
config,
pkgs,
...
}: {
programs.vscode {
enable = true;
};
}

@ -1,11 +0,0 @@
{ inputs, pkgs, ... }:
let
nixpkgsDrvRootPath = inputs.nixpkgs + "/pkgs/applications/editors/vscode";
in
{
nixpkgs.overlays = [
{
vscodium = pkgs.callPackage ./vscodium-insiders.nix { inherit nixpkgsDrvRootPath; };
}
];
}

@ -1,104 +0,0 @@
{
lib,
stdenv,
callPackage,
nixpkgsDrvRootPath,
fetchurl,
nixosTests,
commandLineArgs ? "",
sourceExecutableName ? "codium-insiders",
useVSCodeRipgrep ? stdenv.hostPlatform.isDarwin,
}:
let
inherit (stdenv.hostPlatform) system;
throwSystem = throw "Unsupported system: ${system}";
plat =
{
x86_64-linux = "linux-x64";
x86_64-darwin = "darwin-x64";
aarch64-linux = "linux-arm64";
aarch64-darwin = "darwin-arm64";
armv7l-linux = "linux-armhf";
}
.${system} or throwSystem;
archive_fmt = if stdenv.hostPlatform.isDarwin then "zip" else "tar.gz";
hash =
{
x86_64-linux = "sha256-LpLGu8COJ7lk6QoAdmTNG4CMP0aMDNg43A+50Fm1tP4=";
x86_64-darwin = "sha256-d+8vt5grnLwD/cIIGgb2ogpgZrZLZs+2bqfBrRzLfJw=";
aarch64-linux = "sha256-D93Eh5TPRgd9OxJ4pWsOryS5mOz2amQOHOnO+K99hAg=";
aarch64-darwin = "sha256-xKBWAb23jUi8pI7mZpHOP2eF3PZFh0MWj+BM+alKF18=";
armv7l-linux = "sha256-EqJNi/qMM08voA/Ltle3/28zbgIz/Ae42IE5oXLxcKU=";
}
.${system} or throwSystem;
sourceRoot = lib.optionalString (!stdenv.hostPlatform.isDarwin) ".";
in
callPackage "${toString nixpkgsDrvRootPath}/generic.nix" rec {
inherit
sourceRoot
commandLineArgs
useVSCodeRipgrep
sourceExecutableName
;
# Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem.
version = "1.103.05263-insider";
pname = "vscodium";
executableName = "codium-insiders";
longName = "VSCodium";
shortName = "vscodium";
src = fetchurl {
url = "https://github.com/VSCodium/vscodium-insiders/releases/download/${version}/VSCodium-${plat}-${version}.${archive_fmt}";
inherit hash;
};
tests = nixosTests.vscodium;
updateScript = ./update-vscodium.sh;
# Editing the `codium` binary (and shell scripts) within the app bundle causes the bundle's signature
# to be invalidated, which prevents launching starting with macOS Ventura, because VSCodium is notarized.
# See https://eclecticlight.co/2022/06/17/app-security-changes-coming-in-ventura/ for more information.
dontFixup = stdenv.hostPlatform.isDarwin;
meta = {
description = ''
Open source source code editor developed by Microsoft for Windows,
Linux and macOS (VS Code without MS branding/telemetry/licensing)
'';
longDescription = ''
Open source source code editor developed by Microsoft for Windows,
Linux and macOS. It includes support for debugging, embedded Git
control, syntax highlighting, intelligent code completion, snippets,
and code refactoring. It is also customizable, so users can change the
editor's theme, keyboard shortcuts, and preferences
'';
homepage = "https://github.com/VSCodium/vscodium";
downloadPage = "https://github.com/VSCodium/vscodium/releases";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
maintainers = with lib.maintainers; [
synthetica
bobby285271
ludovicopiero
];
mainProgram = "codium";
platforms = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
"armv7l-linux"
];
# requires libc.so.6 and other glibc specifics
broken = stdenv.hostPlatform.isLinux && !stdenv.hostPlatform.isGnu;
};
}

@ -2,9 +2,8 @@
config,
pkgs,
...
}:
{
programs.waybar = {
}: {
programs.waybar = {
enable = true;
package = pkgs.waybar;
settings = {
@ -44,15 +43,15 @@
default = "󰍹";
};
persistent-workspaces = {
"1" = [ ];
"2" = [ ];
"3" = [ ];
"4" = [ ];
"5" = [ ];
"6" = [ ];
"7" = [ ];
"8" = [ ];
"9" = [ ];
"1" = [];
"2" = [];
"3" = [];
"4" = [];
"5" = [];
"6" = [];
"7" = [];
"8" = [];
"9" = [];
};
};
"hyprland/language" = {
@ -94,18 +93,7 @@
format = "{icon}";
tooltip = true;
format-alt = "<small>{percent}%</small>";
format-icons = [
"󱩎"
"󱩏"
"󱩐"
"󱩑"
"󱩒"
"󱩓"
"󱩔"
"󱩕"
"󱩖"
"󰛨"
];
format-icons = ["󱩎" "󱩏" "󱩐" "󱩑" "󱩒" "󱩓" "󱩔" "󱩕" "󱩖" "󰛨"];
# on-scroll-up = "brightnessctl set 1%+";
# on-scroll-down = "brightnessctl set 1%-";
# smooth-scrolling-threshold = "2400";
@ -120,13 +108,7 @@
tooltip-format = "{essid}";
interval = 1;
on-click = "ronema";
format-icons = [
"󰤯"
"󰤟"
"󰤢"
"󰤥"
"󰤨"
];
format-icons = ["󰤯" "󰤟" "󰤢" "󰤥" "󰤨"];
};
"bluetooth" = {
@ -148,11 +130,7 @@
format-icons = {
headphone = "";
default = [
""
""
"󰕾"
];
default = ["" "" "󰕾"];
};
# on-click = "pamixer -t";
# on-scroll-up = "pamixer -i 1";
@ -179,11 +157,7 @@
format-full = "󰂄";
format-alt = "<small>{capacity}%</small> ";
format-icons = [
"󱊡"
"󱊢"
"󱊣"
];
format-icons = ["󱊡" "󱊢" "󱊣"];
};
# "custom/weather" = {
@ -278,7 +252,7 @@
style = ''
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: CaskaydiaCove NFM, JetBrainsMono Nerd Font, Iosevka Nerd Font;
font-family: CascadiaCode Nerd Font, Material Design Icons, JetBrainsMono Nerd Font, Iosevka Nerd Font ;
font-size: 14px;
border: none;
border-radius: 0;

Loading…
Cancel
Save

Powered by TurnKey Linux.