mirror of
https://github.com/bartvdbraak/dotfiles.git
synced 2025-04-28 15:11:20 +00:00
Compare commits
4 commits
9e754a026e
...
49e409a751
Author | SHA1 | Date | |
---|---|---|---|
49e409a751 | |||
|
e993042ff6 | ||
|
454d2b9341 | ||
|
91b4f46f3b |
61 changed files with 260 additions and 228 deletions
|
@ -1,6 +1,6 @@
|
||||||
alias ll='ls -la'
|
alias ll='ls -la'
|
||||||
alias nrs='sudo nixos-rebuild --use-remote-sudo switch'
|
alias nrs='sudo nixos-rebuild --use-remote-sudo switch'
|
||||||
alias nrb='sudo nixos-rebuild --use-remote-sudo boot'
|
alias nrb='sudo nixos-rebuild --use-remote-sudo boot'
|
||||||
alias ngc='sudo nix-collect-garbage --delete-older-than 14d'
|
alias nfmt="find . -type f -name '*.nix' -exec nixfmt {} \;"
|
||||||
alias code='codium'
|
alias code='codium'
|
||||||
alias rgf='rg --files | rg'
|
alias rgf='rg --files | rg'
|
1
gentoo/portage/package.accept_keywords/awscli
Normal file
1
gentoo/portage/package.accept_keywords/awscli
Normal file
|
@ -0,0 +1 @@
|
||||||
|
app-admin/awscli-bin ~amd64
|
1
gentoo/portage/package.accept_keywords/firefox-dev
Normal file
1
gentoo/portage/package.accept_keywords/firefox-dev
Normal file
|
@ -0,0 +1 @@
|
||||||
|
www-client/firefox-developer-bin ~amd64
|
3
gentoo/portage/package.accept_keywords/ghostty
Normal file
3
gentoo/portage/package.accept_keywords/ghostty
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
dev-lang/zig ~amd64
|
||||||
|
x11-terms/ghostty ~amd64
|
||||||
|
app-eselect/eselect-zig ~amd64
|
2
gentoo/portage/package.accept_keywords/git-filter-repo
Normal file
2
gentoo/portage/package.accept_keywords/git-filter-repo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
dev-vcs/git-filter-repo ~amd64
|
||||||
|
|
1
gentoo/portage/package.accept_keywords/insomnia
Normal file
1
gentoo/portage/package.accept_keywords/insomnia
Normal file
|
@ -0,0 +1 @@
|
||||||
|
dev-util/insomnia-bin ~amd64
|
1
gentoo/portage/package.accept_keywords/just
Normal file
1
gentoo/portage/package.accept_keywords/just
Normal file
|
@ -0,0 +1 @@
|
||||||
|
dev-build/just ~amd64
|
1
gentoo/portage/package.accept_keywords/k9scli
Normal file
1
gentoo/portage/package.accept_keywords/k9scli
Normal file
|
@ -0,0 +1 @@
|
||||||
|
sys-cluster/k9scli ~amd64
|
1
gentoo/portage/package.accept_keywords/logseq
Normal file
1
gentoo/portage/package.accept_keywords/logseq
Normal file
|
@ -0,0 +1 @@
|
||||||
|
app-editors/logseq-desktop-bin ~amd64
|
1
gentoo/portage/package.accept_keywords/opentofu
Normal file
1
gentoo/portage/package.accept_keywords/opentofu
Normal file
|
@ -0,0 +1 @@
|
||||||
|
app-admin/opentofu ~amd64
|
1
gentoo/portage/package.accept_keywords/wezterm
Normal file
1
gentoo/portage/package.accept_keywords/wezterm
Normal file
|
@ -0,0 +1 @@
|
||||||
|
x11-terms/wezterm ~amd64
|
1
gentoo/portage/package.accept_keywords/zen-browser
Normal file
1
gentoo/portage/package.accept_keywords/zen-browser
Normal file
|
@ -0,0 +1 @@
|
||||||
|
www-client/zen-bin ~amd64
|
5
gentoo/portage/package.use/ghostty
Normal file
5
gentoo/portage/package.use/ghostty
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
media-libs/harfbuzz abi_x86_32
|
||||||
|
media-gfx/graphite2 abi_x86_32
|
||||||
|
x11-libs/pixman abi_x86_32
|
||||||
|
x11-libs/cairo abi_x86_32
|
||||||
|
dev-libs/lzo abi_x86_32
|
2
gentoo/portage/package.use/iputils
Normal file
2
gentoo/portage/package.use/iputils
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
net-misc/iputils tracepath
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, inputs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Bootloader and EFI settings
|
# Bootloader and EFI settings
|
||||||
|
@ -36,7 +41,7 @@
|
||||||
# Optimization & Garbage Collection
|
# Optimization & Garbage Collection
|
||||||
|
|
||||||
# Optimize Nix-Store During Rebuilds
|
# Optimize Nix-Store During Rebuilds
|
||||||
# NOTE: Optimizes during builds - results in slower builds
|
# NOTE: Optimizes during builds - results in slower builds
|
||||||
nix.settings.auto-optimise-store = true;
|
nix.settings.auto-optimise-store = true;
|
||||||
|
|
||||||
# Purge Unused Nix-Store Entries
|
# Purge Unused Nix-Store Entries
|
||||||
|
@ -48,8 +53,11 @@
|
||||||
|
|
||||||
# Enable Nix Flakes and experimental features
|
# Enable Nix Flakes and experimental features
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
nix.settings.experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
|
|
||||||
# System state version
|
# System state version
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
130
nixos/flake.nix
130
nixos/flake.nix
|
@ -5,107 +5,35 @@
|
||||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, ... } @ inputs:
|
outputs =
|
||||||
{
|
{ nixpkgs, ... }@inputs:
|
||||||
nixosConfigurations = {
|
{
|
||||||
tongfang = nixpkgs.lib.nixosSystem {
|
nixosConfigurations = {
|
||||||
specialArgs = { inherit inputs; };
|
tongfang = nixpkgs.lib.nixosSystem {
|
||||||
modules = [
|
specialArgs = { inherit inputs; };
|
||||||
./hardware/tongfang.nix
|
modules = [
|
||||||
./configuration.nix
|
./hardware/tongfang.nix
|
||||||
./users.nix
|
./configuration.nix
|
||||||
./packages.nix
|
./users.nix
|
||||||
./services.nix
|
./packages.nix
|
||||||
];
|
./services.nix
|
||||||
|
./modules/bootloader.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
qemu = nixpkgs.lib.nixosSystem {
|
||||||
|
specialArgs = { inherit inputs; };
|
||||||
|
modules = [
|
||||||
|
./hardware/qemu.nix
|
||||||
|
|
||||||
|
./modules/kde.nix
|
||||||
|
./modules/configuration.nix
|
||||||
|
./modules/display-manager.nix
|
||||||
|
./modules/greeter.nix
|
||||||
|
./modules/networking.nix
|
||||||
|
./modules/nix-settings.nix
|
||||||
|
./modules/users.nix
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# tongfang = nixpkgs.lib.nixosSystem {
|
|
||||||
# specialArgs = { inherit inputs; };
|
|
||||||
# modules = [
|
|
||||||
# ./hardware/tongfang.nix
|
|
||||||
|
|
||||||
# ./modules/kde.nix
|
|
||||||
# ./modules/battery.nix
|
|
||||||
# ./modules/bluetooth.nix
|
|
||||||
# ./modules/bootloader.nix
|
|
||||||
# ./modules/configuration.nix
|
|
||||||
# ./modules/creative-tools.nix
|
|
||||||
# ./modules/devops-tools.nix
|
|
||||||
# ./modules/display-manager.nix
|
|
||||||
# ./modules/environment-variables.nix
|
|
||||||
# ./modules/firewall.nix
|
|
||||||
# ./modules/fonts.nix
|
|
||||||
# ./modules/gc.nix
|
|
||||||
# ./modules/greeter.nix
|
|
||||||
# ./modules/info-fetchers.nix
|
|
||||||
# ./modules/internationalisation.nix
|
|
||||||
# ./modules/keyboard.nix
|
|
||||||
# ./modules/linux-kernel.nix
|
|
||||||
# ./modules/lsp.nix
|
|
||||||
# ./modules/networking.nix
|
|
||||||
# ./modules/nix-settings.nix
|
|
||||||
# ./modules/nixpkgs.nix
|
|
||||||
# ./modules/open-ssh.nix
|
|
||||||
# ./modules/printing.nix
|
|
||||||
# ./modules/programming-languages.nix
|
|
||||||
# ./modules/screen.nix
|
|
||||||
# ./modules/services.nix
|
|
||||||
# ./modules/sound.nix
|
|
||||||
# ./modules/terminal-utils.nix
|
|
||||||
# ./modules/theme.nix
|
|
||||||
# ./modules/time.nix
|
|
||||||
# ./modules/usb.nix
|
|
||||||
# ./modules/users.nix
|
|
||||||
# ./modules/utils.nix
|
|
||||||
# ./modules/virtualisation.nix
|
|
||||||
# ./modules/vpn.nix
|
|
||||||
# ./modules/work.nix
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
|
|
||||||
# qemu = nixpkgs.lib.nixosSystem {
|
|
||||||
# specialArgs = { inherit inputs; };
|
|
||||||
# modules = [
|
|
||||||
# ./hardware/qemu.nix
|
|
||||||
|
|
||||||
# ./modules/kde.nix
|
|
||||||
# # ./modules/battery.nix
|
|
||||||
# # ./modules/bluetooth.nix
|
|
||||||
# # ./modules/bootloader.nix
|
|
||||||
# ./modules/configuration.nix
|
|
||||||
# # ./modules/creative-tools.nix
|
|
||||||
# # ./modules/devops-tools.nix
|
|
||||||
# ./modules/display-manager.nix
|
|
||||||
# # ./modules/environment-variables.nix
|
|
||||||
# # ./modules/firewall.nix
|
|
||||||
# # ./modules/fonts.nix
|
|
||||||
# # ./modules/gc.nix
|
|
||||||
# ./modules/greeter.nix
|
|
||||||
# # ./modules/info-fetchers.nix
|
|
||||||
# # ./modules/internationalisation.nix
|
|
||||||
# # ./modules/keyboard.nix
|
|
||||||
# # ./modules/linux-kernel.nix
|
|
||||||
# # ./modules/lsp.nix
|
|
||||||
# ./modules/networking.nix
|
|
||||||
# ./modules/nix-settings.nix
|
|
||||||
# # ./modules/nixpkgs.nix
|
|
||||||
# # ./modules/open-ssh.nix
|
|
||||||
# # ./modules/printing.nix
|
|
||||||
# # ./modules/programming-languages.nix
|
|
||||||
# # ./modules/screen.nix
|
|
||||||
# # ./modules/services.nix
|
|
||||||
# # ./modules/sound.nix
|
|
||||||
# # ./modules/terminal-utils.nix
|
|
||||||
# # ./modules/theme.nix
|
|
||||||
# # ./modules/time.nix
|
|
||||||
# # ./modules/usb.nix
|
|
||||||
# ./modules/users.nix
|
|
||||||
# # ./modules/utils.nix
|
|
||||||
# # ./modules/virtualisation.nix
|
|
||||||
# # ./modules/vpn.nix
|
|
||||||
# # ./modules/work.nix
|
|
||||||
# ];
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,22 +1,34 @@
|
||||||
# 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 + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"ahci"
|
||||||
|
"xhci_pci"
|
||||||
|
"virtio_pci"
|
||||||
|
"sr_mod"
|
||||||
|
"virtio_blk"
|
||||||
|
];
|
||||||
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/d6b08f23-97da-4e41-b70c-90fcc35db534";
|
device = "/dev/disk/by-uuid/d6b08f23-97da-4e41-b70c-90fcc35db534";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
# 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,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
yt6801 = import ./yt6801.nix {
|
yt6801 = import ./yt6801.nix {
|
||||||
|
@ -10,25 +16,35 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" "sdhci_pci" ];
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"thunderbolt"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
"sdhci_pci"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-amd" ];
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
boot.extraModulePackages = [ yt6801 ];
|
boot.extraModulePackages = [ yt6801 ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/c7cf28c3-5744-45cc-8a81-456d24e44b7a";
|
device = "/dev/disk/by-uuid/c7cf28c3-5744-45cc-8a81-456d24e44b7a";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/CEF6-7DAA";
|
device = "/dev/disk/by-uuid/CEF6-7DAA";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [
|
||||||
};
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
swapDevices = [ ];
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
@ -41,4 +57,4 @@ in
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,4 +48,4 @@ stdenv.mkDerivation {
|
||||||
];
|
];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,4 +13,4 @@
|
||||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,4 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
overskride
|
overskride
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,32 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Bootloader options
|
# Bootloader options
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot = {
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
# Enable Plymouth
|
||||||
boot.loader.timeout = 2;
|
plymouth = {
|
||||||
boot.initrd.enable = true;
|
enable = true;
|
||||||
boot.initrd.systemd.enable = true;
|
font = "${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf";
|
||||||
boot.consoleLogLevel = 3;
|
themePackages = with pkgs; [
|
||||||
boot.plymouth = {
|
(adi1090x-plymouth-themes.override {
|
||||||
enable = true;
|
selected_themes = [ "motion" ];
|
||||||
font = "${pkgs.jetbrains-mono}/share/fonts/truetype/JetBrainsMono-Regular.ttf";
|
})
|
||||||
themePackages = [ pkgs.nixos-bgrt-plymouth ];
|
];
|
||||||
theme = "nixos-bgrt";
|
theme = "motion";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable "Silent Boot"
|
||||||
|
consoleLogLevel = 0;
|
||||||
|
initrd.verbose = false;
|
||||||
|
kernelParams = [
|
||||||
|
"quiet"
|
||||||
|
"splash"
|
||||||
|
"boot.shell_on_fail"
|
||||||
|
"loglevel=3"
|
||||||
|
"rd.systemd.show_status=false"
|
||||||
|
"rd.udev.log_level=3"
|
||||||
|
"udev.log_priority=3"
|
||||||
|
];
|
||||||
|
loader.timeout = 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,4 @@
|
||||||
lldb
|
lldb
|
||||||
musl
|
musl
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,4 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
system.stateVersion = "24.11";
|
system.stateVersion = "24.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,4 +6,4 @@
|
||||||
inkscape
|
inkscape
|
||||||
gimp
|
gimp
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,4 @@
|
||||||
go-task
|
go-task
|
||||||
sops
|
sops
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,4 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
greetd.tuigreet
|
greetd.tuigreet
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
environment.variables.SPOTIFY_PATH = "${pkgs.spotify}/";
|
environment.variables.SPOTIFY_PATH = "${pkgs.spotify}/";
|
||||||
environment.variables.JDK_PATH = "${pkgs.jdk11}/";
|
environment.variables.JDK_PATH = "${pkgs.jdk11}/";
|
||||||
environment.variables.NODEJS_PATH = "${pkgs.nodePackages_latest.nodejs}/";
|
environment.variables.NODEJS_PATH = "${pkgs.nodePackages_latest.nodejs}/";
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
networking.firewall.allowedTCPPorts = [ ];
|
networking.firewall.allowedTCPPorts = [ ];
|
||||||
networking.firewall.allowedUDPPorts = [
|
networking.firewall.allowedUDPPorts = [
|
||||||
5353 # Spotify Connect
|
5353 # Spotify Connect
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
nerd-font-patcher
|
nerd-font-patcher
|
||||||
noto-fonts-color-emoji
|
noto-fonts-color-emoji
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
{
|
{
|
||||||
# Enable Steam
|
# Enable Steam
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,4 +13,4 @@
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 14d";
|
options = "--delete-older-than 14d";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
desktopManager.gnome.enable = true;
|
desktopManager.gnome.enable = true;
|
||||||
displayManager.gdm.enable = true;
|
displayManager.gdm.enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,4 +15,4 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
greetd.tuigreet
|
greetd.tuigreet
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
mpv # media player
|
mpv # media player
|
||||||
imv # image viewer
|
imv # image viewer
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,4 +25,4 @@
|
||||||
dig
|
dig
|
||||||
speedtest-rs
|
speedtest-rs
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
"en_US.UTF-8/UTF-8"
|
"en_US.UTF-8/UTF-8"
|
||||||
"nl_NL.UTF-8/UTF-8"
|
"nl_NL.UTF-8/UTF-8"
|
||||||
];
|
];
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
||||||
i18n.extraLocaleSettings = {
|
i18n.extraLocaleSettings = {
|
||||||
|
@ -27,4 +27,4 @@
|
||||||
hunspellDicts.en_US
|
hunspellDicts.en_US
|
||||||
hunspellDicts.nl_NL
|
hunspellDicts.nl_NL
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,4 @@
|
||||||
wayland.enable = true;
|
wayland.enable = true;
|
||||||
};
|
};
|
||||||
services.desktopManager.plasma6.enable = true;
|
services.desktopManager.plasma6.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
gtypist # typing tutor
|
gtypist # typing tutor
|
||||||
via # keyboard configurator
|
via # keyboard configurator
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
# Linux Kernel
|
# Linux Kernel
|
||||||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
boot.kernelParams = [
|
boot.kernelParams = [
|
||||||
"splash"
|
"splash"
|
||||||
"quiet"
|
"quiet"
|
||||||
"fbcon=nodefer"
|
"fbcon=nodefer"
|
||||||
|
@ -18,4 +18,4 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
policycoreutils
|
policycoreutils
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,5 +27,5 @@
|
||||||
terraform-ls
|
terraform-ls
|
||||||
ansible-language-server
|
ansible-language-server
|
||||||
hyprls
|
hyprls
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
networking.hostName = "tongfang";
|
networking.hostName = "tongfang";
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
users.extraGroups.networkmanager.members = [ "bart" ];
|
users.extraGroups.networkmanager.members = [ "bart" ];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
iwgtk
|
iwgtk
|
||||||
impala
|
impala
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
{
|
{
|
||||||
# Nix Configuration
|
# Nix Configuration
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
experimental-features = [ "nix-command" "flakes" ];
|
experimental-features = [
|
||||||
|
"nix-command"
|
||||||
|
"flakes"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
{
|
{
|
||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
AllowUsers = [ "bart" ];
|
AllowUsers = [ "bart" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,4 +5,4 @@
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
# Disable browsed: https://discourse.nixos.org/t/newly-announced-vulnerabilities-in-cups
|
# Disable browsed: https://discourse.nixos.org/t/newly-announced-vulnerabilities-in-cups
|
||||||
services.printing.browsed.enable = false;
|
services.printing.browsed.enable = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,11 +3,17 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
go
|
go
|
||||||
(python312Full.withPackages(ps: with ps; [ pygobject3 gobject-introspection pyqt6-sip]))
|
(python312Full.withPackages (
|
||||||
|
ps: with ps; [
|
||||||
|
pygobject3
|
||||||
|
gobject-introspection
|
||||||
|
pyqt6-sip
|
||||||
|
]
|
||||||
|
))
|
||||||
nodePackages_latest.nodejs
|
nodePackages_latest.nodejs
|
||||||
nodePackages_latest.pnpm
|
nodePackages_latest.pnpm
|
||||||
bun
|
bun
|
||||||
lua
|
lua
|
||||||
zig
|
zig
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
wlsunset
|
wlsunset
|
||||||
brightnessctl
|
brightnessctl
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
systemd.packages = with pkgs; [
|
systemd.packages = with pkgs; [
|
||||||
auto-cpufreq
|
auto-cpufreq
|
||||||
];
|
];
|
||||||
|
|
||||||
# Enable Services
|
# Enable Services
|
||||||
programs.direnv.enable = true;
|
programs.direnv.enable = true;
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
services.mpd.enable = true;
|
services.mpd.enable = true;
|
||||||
programs.thunar.enable = true;
|
programs.thunar.enable = true;
|
||||||
programs.xfconf.enable = true;
|
programs.xfconf.enable = true;
|
||||||
services.tumbler.enable = true;
|
services.tumbler.enable = true;
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
services.auto-cpufreq.enable = true;
|
services.auto-cpufreq.enable = true;
|
||||||
# services.gnome.core-shell.enable = true;
|
# services.gnome.core-shell.enable = true;
|
||||||
|
@ -53,4 +53,4 @@
|
||||||
wlogout
|
wlogout
|
||||||
gifsicle
|
gifsicle
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
pamixer
|
pamixer
|
||||||
pavucontrol
|
pavucontrol
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,4 +56,4 @@
|
||||||
cava
|
cava
|
||||||
figlet
|
figlet
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,9 +34,9 @@
|
||||||
|
|
||||||
# Override packages
|
# Override packages
|
||||||
nixpkgs.config.packageOverrides = pkgs: {
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
colloid-icon-theme = pkgs.colloid-icon-theme.override { colorVariants = ["teal"]; };
|
colloid-icon-theme = pkgs.colloid-icon-theme.override { colorVariants = [ "teal" ]; };
|
||||||
catppuccin-gtk = pkgs.catppuccin-gtk.override {
|
catppuccin-gtk = pkgs.catppuccin-gtk.override {
|
||||||
accents = [ "teal" ]; # You can specify multiple accents here to output multiple themes
|
accents = [ "teal" ]; # You can specify multiple accents here to output multiple themes
|
||||||
size = "standard";
|
size = "standard";
|
||||||
variant = "macchiato";
|
variant = "macchiato";
|
||||||
};
|
};
|
||||||
|
@ -59,4 +59,4 @@
|
||||||
# xsettingsd
|
# xsettingsd
|
||||||
# themechanger
|
# themechanger
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,4 +4,4 @@
|
||||||
# Set your time zone.
|
# Set your time zone.
|
||||||
time.hardwareClockInLocalTime = true;
|
time.hardwareClockInLocalTime = true;
|
||||||
time.timeZone = "Europe/Amsterdam";
|
time.timeZone = "Europe/Amsterdam";
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,4 +22,4 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
usbutils
|
usbutils
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,14 @@
|
||||||
users.users.bart = {
|
users.users.bart = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Bart van der Braak";
|
description = "Bart van der Braak";
|
||||||
extraGroups = [ "networkmanager" "input" "wheel" "video" "audio" "tss" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"input"
|
||||||
|
"wheel"
|
||||||
|
"video"
|
||||||
|
"audio"
|
||||||
|
"tss"
|
||||||
|
];
|
||||||
shell = pkgs.bash;
|
shell = pkgs.bash;
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
spotify
|
spotify
|
||||||
|
@ -16,4 +23,4 @@
|
||||||
|
|
||||||
# Change runtime directory size
|
# Change runtime directory size
|
||||||
services.logind.extraConfig = "RuntimeDirectorySize=8G";
|
services.logind.extraConfig = "RuntimeDirectorySize=8G";
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,4 +20,4 @@
|
||||||
lazydocker
|
lazydocker
|
||||||
docker-credential-helpers
|
docker-credential-helpers
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,4 +9,4 @@
|
||||||
networkmanager-openvpn
|
networkmanager-openvpn
|
||||||
mullvad-closest
|
mullvad-closest
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,4 +7,4 @@
|
||||||
gnumake
|
gnumake
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ pkgs, inputs, config, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
customWallpaper = pkgs.fetchurl {
|
customWallpaper = pkgs.fetchurl {
|
||||||
|
@ -7,26 +12,29 @@ let
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; with inputs; [
|
environment.systemPackages =
|
||||||
inputs.zen-browser.packages."${system}".default
|
with pkgs;
|
||||||
firefox
|
with inputs;
|
||||||
git
|
[
|
||||||
vim
|
inputs.zen-browser.packages."${system}".default
|
||||||
wget
|
firefox
|
||||||
curl
|
git
|
||||||
fzf
|
vim
|
||||||
jq
|
wget
|
||||||
unzip
|
curl
|
||||||
silver-searcher
|
fzf
|
||||||
ripgrep
|
jq
|
||||||
wl-clipboard-rs
|
unzip
|
||||||
networkmanager-openvpn
|
silver-searcher
|
||||||
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
|
ripgrep
|
||||||
[General]
|
wl-clipboard-rs
|
||||||
background=${customWallpaper}
|
networkmanager-openvpn
|
||||||
'')
|
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
|
||||||
dig
|
[General]
|
||||||
zig
|
background=${customWallpaper}
|
||||||
spotify
|
'')
|
||||||
];
|
dig
|
||||||
}
|
zig
|
||||||
|
spotify
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
|
@ -13,17 +13,17 @@
|
||||||
# Enable PipeWire and ALSA support
|
# Enable PipeWire and ALSA support
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true; # Enable ALSA support
|
alsa.enable = true; # Enable ALSA support
|
||||||
alsa.support32Bit = true; # Support for 32-bit applications
|
alsa.support32Bit = true; # Support for 32-bit applications
|
||||||
pulse.enable = true; # Enable PulseAudio compatibility layer
|
pulse.enable = true; # Enable PulseAudio compatibility layer
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable libinput for input device handling
|
# Enable libinput for input device handling
|
||||||
services.libinput.enable = true;
|
services.libinput.enable = true;
|
||||||
|
|
||||||
# Enable security-related service for realtime audio tasks
|
# Enable security-related service for realtime audio tasks
|
||||||
security.rtkit.enable = true;
|
security.rtkit.enable = true;
|
||||||
|
|
||||||
# Enable to update some devices' firmware
|
# Enable to update some devices' firmware
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
|
@ -40,4 +40,4 @@
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.printing.browsed.enable = false;
|
services.printing.browsed.enable = false;
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,12 @@
|
||||||
users.users.bart = {
|
users.users.bart = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Bart van der Braak";
|
description = "Bart van der Braak";
|
||||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" "docker" ];
|
extraGroups = [
|
||||||
|
"networkmanager"
|
||||||
|
"wheel"
|
||||||
|
"libvirtd"
|
||||||
|
"docker"
|
||||||
|
];
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
vscodium
|
vscodium
|
||||||
thunderbird
|
thunderbird
|
||||||
|
@ -63,9 +68,12 @@
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
# Add Docker support
|
# Add Docker support
|
||||||
virtualisation.docker.enable = true;
|
virtualisation.docker = {
|
||||||
virtualisation.docker.rootless = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
setSocketVariable = true;
|
enableOnBoot = false;
|
||||||
|
rootless = {
|
||||||
|
enable = true;
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue