cleanup: nixfmt everything
This commit is contained in:
parent
a784ba021f
commit
a4c5e7aca8
22 changed files with 317 additions and 224 deletions
|
|
@ -1,4 +1,7 @@
|
||||||
{ lib, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
timeout = lib.mkDefault 0;
|
timeout = lib.mkDefault 0;
|
||||||
|
|
|
||||||
|
|
@ -1,18 +0,0 @@
|
||||||
{ config, pkgs, ... }: {
|
|
||||||
nixpkgs.overlays = [
|
|
||||||
(self: super: {
|
|
||||||
ccid = super.ccid.overrideAttrs (old: rec {
|
|
||||||
pname = "ccid";
|
|
||||||
version = "1.5.5";
|
|
||||||
src = super.fetchurl {
|
|
||||||
url = "https://ccid.apdu.fr/files/${pname}-${version}.tar.bz2";
|
|
||||||
hash = "sha256-GUcI91/jadRd18Feiz6Kfbi0nPxVV1dMoqLnbvEsoMo=";
|
|
||||||
};
|
|
||||||
postPatch = ''
|
|
||||||
patchShebangs .
|
|
||||||
substituteInPlace src/Makefile.in --replace-fail /bin/echo echo
|
|
||||||
'';
|
|
||||||
});
|
|
||||||
})
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, nix-colors, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
nix-colors,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
{ pkgs, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
(symlinkJoin {
|
(symlinkJoin {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{...}:
|
{ ... }:
|
||||||
{
|
{
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
services.spotifyd.enable = true;
|
services.spotifyd.enable = true;
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
{ config, lib, ... }: {
|
{
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
# auto optimise every so often
|
# auto optimise every so often
|
||||||
auto-optimise-store = true;
|
auto-optimise-store = true;
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
substituters = [
|
substituters = [
|
||||||
"https://cosmic.cachix.org/"
|
"https://cosmic.cachix.org/"
|
||||||
"https://hyprland.cachix.org"
|
"https://hyprland.cachix.org"
|
||||||
|
|
@ -20,7 +26,10 @@
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
|
||||||
];
|
];
|
||||||
system-features = [ "kvm" "big-parallel" ];
|
system-features = [
|
||||||
|
"kvm"
|
||||||
|
"big-parallel"
|
||||||
|
];
|
||||||
allowed-uris = [
|
allowed-uris = [
|
||||||
"github:"
|
"github:"
|
||||||
"gitlab:"
|
"gitlab:"
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,16 @@
|
||||||
# your system.Help is available in the configuration.nix(5) man page
|
# your system.Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, inputs, nix-colors, lib, ... }:
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
nix-colors,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../modules/games/steam.nix
|
../../modules/games/steam.nix
|
||||||
|
|
@ -16,10 +22,8 @@
|
||||||
./restic.nix
|
./restic.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
age.identityPaths = [ "${config.users.users.noa.home}/.ssh/id_ed25519" ];
|
age.identityPaths = [ "${config.users.users.noa.home}/.ssh/id_ed25519" ];
|
||||||
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -47,7 +51,10 @@
|
||||||
sandbox = true;
|
sandbox = true;
|
||||||
show-trace = true;
|
show-trace = true;
|
||||||
|
|
||||||
system-features = [ "nixos-test" "recursive-nix" ];
|
system-features = [
|
||||||
|
"nixos-test"
|
||||||
|
"recursive-nix"
|
||||||
|
];
|
||||||
sandbox-paths = [ "/bin/sh=${pkgs.busybox-sandbox-shell.out}/bin/busybox" ];
|
sandbox-paths = [ "/bin/sh=${pkgs.busybox-sandbox-shell.out}/bin/busybox" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -69,7 +76,6 @@
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Amsterdam";
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "us-acentos";
|
console.keyMap = "us-acentos";
|
||||||
|
|
||||||
|
|
@ -81,7 +87,13 @@
|
||||||
noa = {
|
noa = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Noa Aarts";
|
description = "Noa Aarts";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "wireshark" "dialout" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
"wireshark"
|
||||||
|
"dialout"
|
||||||
|
];
|
||||||
hashedPassword = "$6$rounds=512400$Zip3xoK2zcoR4qEL$N13YTHO5tpWfx2nKb1sye.ZPwfoRtMQ5f3YrMZqKzzoFoSSHHJ.l5ulCEa9HygFxZmBtPnwlseFEtl8ERnwF50";
|
hashedPassword = "$6$rounds=512400$Zip3xoK2zcoR4qEL$N13YTHO5tpWfx2nKb1sye.ZPwfoRtMQ5f3YrMZqKzzoFoSSHHJ.l5ulCEa9HygFxZmBtPnwlseFEtl8ERnwF50";
|
||||||
openssh.authorizedKeys.keys = (import ../../common/ssh-keys.nix);
|
openssh.authorizedKeys.keys = (import ../../common/ssh-keys.nix);
|
||||||
};
|
};
|
||||||
|
|
@ -102,7 +114,6 @@
|
||||||
restic
|
restic
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# TODO: find list of fonts to install
|
# TODO: find list of fonts to install
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
font-awesome
|
font-awesome
|
||||||
|
|
@ -150,7 +161,6 @@
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
boot = rec {
|
boot = rec {
|
||||||
|
|
||||||
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
extraModulePackages = with kernelPackages; [
|
extraModulePackages = with kernelPackages; [
|
||||||
v4l2loopback
|
v4l2loopback
|
||||||
|
|
@ -341,7 +351,6 @@
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
|
||||||
|
|
@ -1,33 +1,42 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"ahci"
|
||||||
|
"xhci_pci"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/263716dd-52cb-4a91-ba0b-e39e492ed0e5";
|
device = "/dev/disk/by-uuid/263716dd-52cb-4a91-ba0b-e39e492ed0e5";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/B08E-916D";
|
device = "/dev/disk/by-uuid/B08E-916D";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/home/noa/Pictures/library" =
|
fileSystems."/home/noa/Pictures/library" = {
|
||||||
{
|
|
||||||
device = "/dev/disk/by-uuid/93a74173-8719-4be2-86b3-dc80588b9cf8";
|
device = "/dev/disk/by-uuid/93a74173-8719-4be2-86b3-dc80588b9cf8";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
{ config, pkgs, inputs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
../../modules/hyprland.nix
|
../../modules/hyprland.nix
|
||||||
../../modules/games
|
../../modules/games
|
||||||
../../modules/applications
|
../../modules/applications
|
||||||
|
|
@ -99,7 +104,6 @@
|
||||||
inputs.tsunami.packages.${system}.tsunami
|
inputs.tsunami.packages.${system}.tsunami
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
@ -132,7 +136,6 @@
|
||||||
# /etc/profiles/per-user/noa/etc/profile.d/hm-session-vars.sh
|
# /etc/profiles/per-user/noa/etc/profile.d/hm-session-vars.sh
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
TERM = "kitty";
|
TERM = "kitty";
|
||||||
|
|
@ -153,8 +156,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dconf = {
|
dconf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -198,13 +199,14 @@
|
||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
name = name;
|
name = name;
|
||||||
size = 32;
|
size = 32;
|
||||||
package =
|
package = pkgs.runCommand "moveUp" { } ''
|
||||||
pkgs.runCommand "moveUp" { } ''
|
|
||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
ln -s ${pkgs.fetchzip {
|
ln -s ${
|
||||||
|
pkgs.fetchzip {
|
||||||
url = url;
|
url = url;
|
||||||
hash = hash;
|
hash = hash;
|
||||||
}} $out/share/icons/${name}
|
}
|
||||||
|
} $out/share/icons/${name}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{ config, ... }: {
|
{ config, ... }:
|
||||||
|
{
|
||||||
# configure agenix secrets
|
# configure agenix secrets
|
||||||
age.secrets = {
|
age.secrets = {
|
||||||
"restic/env".file = ../../secrets/restic/env.age;
|
"restic/env".file = ../../secrets/restic/env.age;
|
||||||
|
|
@ -31,4 +32,3 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -34,7 +39,6 @@
|
||||||
lsd
|
lsd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
apps = {
|
apps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,16 @@
|
||||||
# your system.Help is available in the configuration.nix(5) man page
|
# your system.Help is available in the configuration.nix(5) man page
|
||||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, pkgs, inputs, nix-colors, lib, ... }:
|
|
||||||
{
|
{
|
||||||
imports =
|
config,
|
||||||
[
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
nix-colors,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
../../modules/games/steam.nix
|
../../modules/games/steam.nix
|
||||||
./disk-config.nix
|
./disk-config.nix
|
||||||
|
|
@ -14,9 +20,6 @@
|
||||||
../../common
|
../../common
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
bluetooth = {
|
bluetooth = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -48,7 +51,6 @@
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.timeZone = "Europe/Amsterdam";
|
time.timeZone = "Europe/Amsterdam";
|
||||||
|
|
||||||
|
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "us-acentos";
|
console.keyMap = "us-acentos";
|
||||||
|
|
||||||
|
|
@ -60,7 +62,12 @@
|
||||||
noa = {
|
noa = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Noa Aarts";
|
description = "Noa Aarts";
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "wireshark" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
"wireshark"
|
||||||
|
];
|
||||||
hashedPassword = "$6$rounds=512400$Zip3xoK2zcoR4qEL$N13YTHO5tpWfx2nKb1sye.ZPwfoRtMQ5f3YrMZqKzzoFoSSHHJ.l5ulCEa9HygFxZmBtPnwlseFEtl8ERnwF50";
|
hashedPassword = "$6$rounds=512400$Zip3xoK2zcoR4qEL$N13YTHO5tpWfx2nKb1sye.ZPwfoRtMQ5f3YrMZqKzzoFoSSHHJ.l5ulCEa9HygFxZmBtPnwlseFEtl8ERnwF50";
|
||||||
openssh.authorizedKeys.keys = import ../../common/ssh-keys.nix;
|
openssh.authorizedKeys.keys = import ../../common/ssh-keys.nix;
|
||||||
};
|
};
|
||||||
|
|
@ -123,7 +130,6 @@
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
boot = rec {
|
boot = rec {
|
||||||
|
|
||||||
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
extraModulePackages = with kernelPackages; [
|
extraModulePackages = with kernelPackages; [
|
||||||
v4l2loopback
|
v4l2loopback
|
||||||
|
|
@ -276,8 +282,6 @@
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
# networking.firewall.enable = false;
|
# networking.firewall.enable = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 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
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
|
|
||||||
|
|
@ -30,4 +30,3 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,26 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"thunderbolt"
|
||||||
|
"nvme"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
{ config, pkgs, inputs, lib, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
../../modules/hyprland.nix
|
../../modules/hyprland.nix
|
||||||
../../modules/games
|
../../modules/games
|
||||||
../../modules/applications
|
../../modules/applications
|
||||||
|
|
@ -85,7 +90,6 @@
|
||||||
yubico-piv-tool
|
yubico-piv-tool
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
@ -118,7 +122,6 @@
|
||||||
# /etc/profiles/per-user/noa/etc/profile.d/hm-session-vars.sh
|
# /etc/profiles/per-user/noa/etc/profile.d/hm-session-vars.sh
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
TERM = "kitty";
|
TERM = "kitty";
|
||||||
|
|
@ -139,8 +142,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dconf = {
|
dconf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|
@ -183,13 +184,14 @@
|
||||||
x11.enable = true;
|
x11.enable = true;
|
||||||
name = name;
|
name = name;
|
||||||
size = 32;
|
size = 32;
|
||||||
package =
|
package = pkgs.runCommand "moveUp" { } ''
|
||||||
pkgs.runCommand "moveUp" { } ''
|
|
||||||
mkdir -p $out/share/icons
|
mkdir -p $out/share/icons
|
||||||
ln -s ${pkgs.fetchzip {
|
ln -s ${
|
||||||
|
pkgs.fetchzip {
|
||||||
url = url;
|
url = url;
|
||||||
hash = hash;
|
hash = hash;
|
||||||
}} $out/share/icons/${name}
|
}
|
||||||
|
} $out/share/icons/${name}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -34,7 +39,6 @@
|
||||||
lsd
|
lsd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
apps = {
|
apps = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,17 @@
|
||||||
# your system. Help is available in the configuration.nix(5) man page, on
|
# 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`).
|
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
|
||||||
|
|
||||||
{ modulesPath, pkgs, inputs, lib, nix-colors, config, ... }:
|
|
||||||
{
|
{
|
||||||
imports =
|
modulesPath,
|
||||||
[
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
nix-colors,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
|
|
@ -39,7 +46,12 @@
|
||||||
users.users = {
|
users.users = {
|
||||||
noa = {
|
noa = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "networkmanager" "wheel" "docker" "libvirt" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
"docker"
|
||||||
|
"libvirt"
|
||||||
|
];
|
||||||
hashedPassword = "$6$rounds=512400$g/s4dcRttXi4ux6c$Z6pKnhJXcWxv0TBSMtvJu5.piETdUBSgBVN7oDPKiQV.lbTYz1r.0XQLwMYxzcvaaX0DL6Iw/SEUTiC2M50wC/";
|
hashedPassword = "$6$rounds=512400$g/s4dcRttXi4ux6c$Z6pKnhJXcWxv0TBSMtvJu5.piETdUBSgBVN7oDPKiQV.lbTYz1r.0XQLwMYxzcvaaX0DL6Iw/SEUTiC2M50wC/";
|
||||||
openssh.authorizedKeys.keys = import ../../common/ssh-keys.nix;
|
openssh.authorizedKeys.keys = import ../../common/ssh-keys.nix;
|
||||||
};
|
};
|
||||||
|
|
@ -66,7 +78,6 @@
|
||||||
# enableSSHSupport = true;
|
# enableSSHSupport = true;
|
||||||
# };
|
# };
|
||||||
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
@ -153,7 +164,7 @@
|
||||||
github-runners = {
|
github-runners = {
|
||||||
flurry-runner = {
|
flurry-runner = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraPackages = with pkgs;[
|
extraPackages = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
curl
|
curl
|
||||||
];
|
];
|
||||||
|
|
@ -206,7 +217,6 @@
|
||||||
modules = [ pkgs.nginxModules.brotli ];
|
modules = [ pkgs.nginxModules.brotli ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
recommendedOptimisation = true;
|
recommendedOptimisation = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
recommendedTlsSettings = true;
|
recommendedTlsSettings = true;
|
||||||
|
|
@ -253,7 +263,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults.email = "noa@voorwaarts.nl";
|
defaults.email = "noa@voorwaarts.nl";
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,24 @@
|
||||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
# and may be overwritten by future invocations. Please make changes
|
# and may be overwritten by future invocations. Please make changes
|
||||||
# to /etc/nixos/configuration.nix instead.
|
# to /etc/nixos/configuration.nix instead.
|
||||||
{ config, lib, pkgs, modulesPath, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
{ config, pkgs, mineflake, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
mineflake,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
../../modules/applications
|
../../modules/applications
|
||||||
../../common/nvim/nvim.nix
|
../../common/nvim/nvim.nix
|
||||||
];
|
];
|
||||||
|
|
@ -56,8 +61,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,12 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[
|
|
||||||
../../common/nvim/nvim.nix
|
../../common/nvim/nvim.nix
|
||||||
];
|
];
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
|
|
@ -34,7 +38,6 @@
|
||||||
lsd
|
lsd
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
# Home Manager is pretty good at managing dotfiles. The primary way to manage
|
||||||
# plain files is through 'home.file'.
|
# plain files is through 'home.file'.
|
||||||
home.file = {
|
home.file = {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
{ config, lib, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
cfg = config.modules.hyprland;
|
cfg = config.modules.hyprland;
|
||||||
in
|
in
|
||||||
|
|
@ -23,11 +29,10 @@ in
|
||||||
default = pkgs.xdg-desktop-portal-hyprland;
|
default = pkgs.xdg-desktop-portal-hyprland;
|
||||||
};
|
};
|
||||||
displays = lib.mkOption {
|
displays = lib.mkOption {
|
||||||
type = lib.types.listOf
|
type = lib.types.listOf (
|
||||||
(lib.types.submodule {
|
lib.types.submodule {
|
||||||
options = {
|
options = {
|
||||||
name = lib.mkOption
|
name = lib.mkOption {
|
||||||
{
|
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "the display identifier";
|
description = "the display identifier";
|
||||||
example = "DP-2";
|
example = "DP-2";
|
||||||
|
|
@ -64,7 +69,8 @@ in
|
||||||
example = "1.5";
|
example = "1.5";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
);
|
||||||
description = "the display layout to use";
|
description = "the display layout to use";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -84,9 +90,23 @@ in
|
||||||
};
|
};
|
||||||
waybar = {
|
waybar = {
|
||||||
modules = {
|
modules = {
|
||||||
left = [ "hyprland/workspaces" "tray" "hyprland/window" ];
|
left = [
|
||||||
center = [ "clock" "custom/spotify" ];
|
"hyprland/workspaces"
|
||||||
right = [ "custom/vpn" "wireplumber" "network" "cpu" "memory" "custom/poweroff" ];
|
"tray"
|
||||||
|
"hyprland/window"
|
||||||
|
];
|
||||||
|
center = [
|
||||||
|
"clock"
|
||||||
|
"custom/spotify"
|
||||||
|
];
|
||||||
|
right = [
|
||||||
|
"custom/vpn"
|
||||||
|
"wireplumber"
|
||||||
|
"network"
|
||||||
|
"cpu"
|
||||||
|
"memory"
|
||||||
|
"custom/poweroff"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
enable = lib.mkDefault true;
|
enable = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
|
|
@ -102,7 +122,6 @@ in
|
||||||
playerctl
|
playerctl
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
xdg.portal = {
|
xdg.portal = {
|
||||||
extraPortals = [ cfg.portalPackage ];
|
extraPortals = [ cfg.portalPackage ];
|
||||||
config.common.default = "*";
|
config.common.default = "*";
|
||||||
|
|
@ -127,7 +146,9 @@ in
|
||||||
package = cfg.package;
|
package = cfg.package;
|
||||||
settings =
|
settings =
|
||||||
let
|
let
|
||||||
make-display-string = display: "${display.name}, ${builtins.toString display.horizontal}x${builtins.toString display.vertical}@${builtins.toString display.refresh-rate}, ${builtins.toString display.horizontal-offset}x${builtins.toString display.vertical-offset}, ${display.scale}";
|
make-display-string =
|
||||||
|
display:
|
||||||
|
"${display.name}, ${builtins.toString display.horizontal}x${builtins.toString display.vertical}@${builtins.toString display.refresh-rate}, ${builtins.toString display.horizontal-offset}x${builtins.toString display.vertical-offset}, ${display.scale}";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
monitor = builtins.map make-display-string cfg.displays;
|
monitor = builtins.map make-display-string cfg.displays;
|
||||||
|
|
@ -179,7 +200,8 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
bind = [
|
bind =
|
||||||
|
[
|
||||||
"$mod,Return,exec,${cfg.terminal}/bin/${cfg.terminal.pname}"
|
"$mod,Return,exec,${cfg.terminal}/bin/${cfg.terminal.pname}"
|
||||||
"$mod,tab,cyclenext"
|
"$mod,tab,cyclenext"
|
||||||
"SUPERSHIFT,Q,killactive"
|
"SUPERSHIFT,Q,killactive"
|
||||||
|
|
@ -208,9 +230,8 @@ in
|
||||||
"$mod,mouse_up,workspace,r-1"
|
"$mod,mouse_up,workspace,r-1"
|
||||||
"$mod,mouse_down,workspace,r+1"
|
"$mod,mouse_down,workspace,r+1"
|
||||||
]
|
]
|
||||||
++ (
|
++ (builtins.concatLists (
|
||||||
builtins.concatLists (builtins.genList
|
builtins.genList (
|
||||||
(
|
|
||||||
x:
|
x:
|
||||||
let
|
let
|
||||||
ws = builtins.toString (x);
|
ws = builtins.toString (x);
|
||||||
|
|
@ -219,9 +240,8 @@ in
|
||||||
"$mod,${ws},workspace,${ws}"
|
"$mod,${ws},workspace,${ws}"
|
||||||
"ALT,${ws},movetoworkspace,${ws}"
|
"ALT,${ws},movetoworkspace,${ws}"
|
||||||
]
|
]
|
||||||
)
|
) 10
|
||||||
10)
|
));
|
||||||
);
|
|
||||||
bindm = [
|
bindm = [
|
||||||
"$mod,mouse:272,movewindow"
|
"$mod,mouse:272,movewindow"
|
||||||
"$mod,mouse:273,resizewindow"
|
"$mod,mouse:273,resizewindow"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue