Compare commits
5 commits
92b172b0a3
...
5a6036dd62
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a6036dd62 | |||
| 7d520d8cec | |||
| c81444f924 | |||
| 7cfd76eb23 | |||
| dbbd14bbbe |
10 changed files with 324 additions and 93 deletions
40
nixos/flake.lock
generated
40
nixos/flake.lock
generated
|
|
@ -25,16 +25,16 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1747688870,
|
"lastModified": 1758463745,
|
||||||
"narHash": "sha256-ypL9WAZfmJr5V70jEVzqGjjQzF0uCkz+AFQF7n9NmNc=",
|
"narHash": "sha256-uhzsV0Q0I9j2y/rfweWeGif5AWe0MGrgZ/3TjpDYdGA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "d5f1f641b289553927b3801580598d200a501863",
|
"rev": "3b955f5f0a942f9f60cdc9cacb7844335d0f21c3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"ref": "release-24.11",
|
"ref": "release-25.05",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|
@ -62,26 +62,26 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1751274312,
|
"lastModified": 1758589230,
|
||||||
"narHash": "sha256-/bVBlRpECLVzjV19t5KMdMFWSwKLtb5RyXdjz3LJT+g=",
|
"narHash": "sha256-zMTCFGe8aVGTEr2RqUi/QzC1nOIQ0N1HRsbqB4f646k=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "50ab793786d9de88ee30ec4e4c24fb4236fc2674",
|
"rev": "d1d883129b193f0b495d75c148c2c3a7d95789a0",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-24.11",
|
"ref": "nixos-25.05",
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757745802,
|
"lastModified": 1758427187,
|
||||||
"narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
|
"narHash": "sha256-pHpxZ/IyCwoTQPtFIAG2QaxuSm8jWzrzBGjwQZIttJc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
|
"rev": "554be6495561ff07b6c724047bdd7e0716aa7b46",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -104,11 +104,11 @@
|
||||||
"treefmt-nix": "treefmt-nix"
|
"treefmt-nix": "treefmt-nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1724283233,
|
"lastModified": 1758594056,
|
||||||
"narHash": "sha256-XMPn6YHwFOJCGLE9M5F3AEFKA0u+maf8CpIEWmvaQTQ=",
|
"narHash": "sha256-6XyKDRWqBngw1g73e789iyIaw/0VF04ELk/ATtlkTVU=",
|
||||||
"owner": "ThinkChaos",
|
"owner": "ThinkChaos",
|
||||||
"repo": "openconnect-sso",
|
"repo": "openconnect-sso",
|
||||||
"rev": "94f1ddfef1662d56ede0a093bcfc3d23156bc1a1",
|
"rev": "2041471efd331d0591d34e122aefb02690fb233a",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -174,11 +174,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758007585,
|
"lastModified": 1758425756,
|
||||||
"narHash": "sha256-HYnwlbY6RE5xVd5rh0bYw77pnD8lOgbT4mlrfjgNZ0c=",
|
"narHash": "sha256-L3N8zV6wsViXiD8i3WFyrvjDdz76g3tXKEdZ4FkgQ+Y=",
|
||||||
"owner": "Mic92",
|
"owner": "Mic92",
|
||||||
"repo": "sops-nix",
|
"repo": "sops-nix",
|
||||||
"rev": "f77d4cfa075c3de66fc9976b80e0c4fc69e2c139",
|
"rev": "e0fdaea3c31646e252a60b42d0ed8eafdb289762",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -265,11 +265,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1757304371,
|
"lastModified": 1758600385,
|
||||||
"narHash": "sha256-EZ3Vwgh5xgXuiPUmr9e1a9dEu3hvEWhRurAKpsAwB2A=",
|
"narHash": "sha256-lRK96/otQ9JAkrjYFkK8sKloujhZ+eS3RFFerMdEKAg=",
|
||||||
"owner": "youwen5",
|
"owner": "youwen5",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "3968348af022fe88468ef8de4f9683076e2e5e4b",
|
"rev": "8fdac24a43e541c644ea26b48ff886533d367155",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
description = "System configuration of my machines using flakes";
|
description = "System configuration of my machines using flakes";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-24.11";
|
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||||
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-24.11";
|
url = "github:nix-community/home-manager/release-25.05";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
openconnect-sso = {
|
openconnect-sso = {
|
||||||
|
|
@ -71,11 +71,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModule
|
|
||||||
sops-nix.nixosModules.sops
|
|
||||||
|
|
||||||
./modules
|
./modules
|
||||||
./users
|
./users
|
||||||
|
|
||||||
|
home-manager.nixosModules.home-manager
|
||||||
|
sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -83,6 +83,7 @@
|
||||||
Tibo-NixDesk.modules = [ ./hosts/Tibo-NixDesk ];
|
Tibo-NixDesk.modules = [ ./hosts/Tibo-NixDesk ];
|
||||||
Tibo-NixFat.modules = [ ./hosts/Tibo-NixFat ];
|
Tibo-NixFat.modules = [ ./hosts/Tibo-NixFat ];
|
||||||
Tibo-NixTest.modules = [ ./hosts/Tibo-NixTest ];
|
Tibo-NixTest.modules = [ ./hosts/Tibo-NixTest ];
|
||||||
|
Tibo-NixTop.modules = [ ./hosts/Tibo-NixTop ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
193
nixos/hosts/Tibo-NixTop/default.nix
Normal file
193
nixos/hosts/Tibo-NixTop/default.nix
Normal file
|
|
@ -0,0 +1,193 @@
|
||||||
|
# Edit this configuration file to define what should be installed 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`).
|
||||||
|
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
# Include the results of the hardware scan.
|
||||||
|
./hardware-configuration.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
sisyphus = {
|
||||||
|
desktop.hyprland.enable = true;
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
eid.enable = true;
|
||||||
|
nvidia = {
|
||||||
|
enable = true;
|
||||||
|
model = "Quadro T2000";
|
||||||
|
};
|
||||||
|
yubikey.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
networkmanager.enable = true;
|
||||||
|
openconnect-sso.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nix = {
|
||||||
|
flakes.enable = true;
|
||||||
|
gc.onFull.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
direnv.enable = true;
|
||||||
|
home-manager.enable = true;
|
||||||
|
sops.enable = true;
|
||||||
|
ssh.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
services = {
|
||||||
|
pipewire.enable = true;
|
||||||
|
tailscale.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.tdpeuter.enable = true;
|
||||||
|
|
||||||
|
virtualisation = {
|
||||||
|
docker.enable = true;
|
||||||
|
virtualbox.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
initrd = {
|
||||||
|
# Use EFI and YubiKey
|
||||||
|
kernelModules = [ "vfat" "nls_cp437" "nls_iso8859-1" "usbhid" ];
|
||||||
|
|
||||||
|
luks = {
|
||||||
|
# Enable YubiKey PBA
|
||||||
|
yubikeySupport = true;
|
||||||
|
devices."encrypted".yubikey = {
|
||||||
|
slot = 2;
|
||||||
|
twoFactor = false;
|
||||||
|
gracePeriod = 10;
|
||||||
|
keyLength = 64;
|
||||||
|
saltLength = 16;
|
||||||
|
storage.device = "/dev/nvme0n1p1";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
loader = {
|
||||||
|
# Use the systemd-boot EFI boot loader.
|
||||||
|
systemd-boot.enable = true;
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Use latest kernel.
|
||||||
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware.bluetooth = {
|
||||||
|
enable = true;
|
||||||
|
powerOnBoot = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
|
services = {
|
||||||
|
auto-cpufreq = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
battery = {
|
||||||
|
governor = "powersave";
|
||||||
|
turbo = "never";
|
||||||
|
};
|
||||||
|
charger = {
|
||||||
|
governor = "performance";
|
||||||
|
turbo = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
logind = {
|
||||||
|
# Handle the laptop lid switch as follows:
|
||||||
|
lidSwitch = "hybrid-sleep";
|
||||||
|
lidSwitchExternalPower = "lock";
|
||||||
|
lidSwitchDocked = "ignore";
|
||||||
|
|
||||||
|
# Handle the power key
|
||||||
|
powerKey = "suspend";
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
power-profiles-daemon.enable = false;
|
||||||
|
|
||||||
|
thermald.enable = true;
|
||||||
|
|
||||||
|
xserver = {
|
||||||
|
# Keyboard layout
|
||||||
|
xkb = {
|
||||||
|
layout = "us";
|
||||||
|
variant = "altgr-intl";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# Touchpad
|
||||||
|
libinput.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "Tibo-NixTop"; # Define your hostname.
|
||||||
|
};
|
||||||
|
|
||||||
|
# Set your time zone.
|
||||||
|
time.timeZone = "Europe/Brussels";
|
||||||
|
|
||||||
|
# Select internationalisation properties.
|
||||||
|
i18n = {
|
||||||
|
defaultLocale = "en_GB.UTF-8"; # LANG
|
||||||
|
extraLocaleSettings.LC_TIME = "nl_BE.UTF-8";
|
||||||
|
};
|
||||||
|
|
||||||
|
console = {
|
||||||
|
# font = "Lat2-Terminus16";
|
||||||
|
# keyMap = "us";
|
||||||
|
useXkbConfig = true; # use xkb.options in tty.
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable CUPS to print documents.
|
||||||
|
# services.printing.enable = true;
|
||||||
|
|
||||||
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
|
# services.libinput.enable = true;
|
||||||
|
|
||||||
|
# List packages installed in system profile.
|
||||||
|
# You can use https://search.nixos.org/ to find more packages (and options).
|
||||||
|
environment = {
|
||||||
|
# Enabled to allow installed binaries in ~/.local/bin
|
||||||
|
localBinInPath = true;
|
||||||
|
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
git
|
||||||
|
vim-full # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||||
|
w3m
|
||||||
|
wget
|
||||||
|
zenith-nvidia
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# This option defines the first version of NixOS you have installed on this particular machine,
|
||||||
|
# and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.
|
||||||
|
#
|
||||||
|
# Most users should NEVER change this value after the initial install, for any reason,
|
||||||
|
# even if you've upgraded your system to a new NixOS release.
|
||||||
|
#
|
||||||
|
# This value does NOT affect the Nixpkgs version your packages and OS are pulled from,
|
||||||
|
# so changing it will NOT upgrade your system - see https://nixos.org/manual/nixos/stable/#sec-upgrading for how
|
||||||
|
# to actually do that.
|
||||||
|
#
|
||||||
|
# This value being lower than the current NixOS release does NOT mean your system is
|
||||||
|
# out of date, out of support, or vulnerable.
|
||||||
|
#
|
||||||
|
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,
|
||||||
|
# and migrated your data accordingly.
|
||||||
|
#
|
||||||
|
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
|
||||||
|
system.stateVersion = "25.05"; # Did you read the comment?
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
41
nixos/hosts/Tibo-NixTop/hardware-configuration.nix
Normal file
41
nixos/hosts/Tibo-NixTop/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
# 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, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/disk/by-uuid/e759b10f-7949-4094-9272-d91340dcc5b6";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."encrypted".device = "/dev/disk/by-uuid/2b6586fa-8823-4add-94f3-132aab17b7b8";
|
||||||
|
|
||||||
|
fileSystems."/boot" =
|
||||||
|
{ device = "/dev/disk/by-uuid/12CE-A600";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [ ];
|
||||||
|
|
||||||
|
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||||
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
# still possible to use this option, but it's recommended to use it in conjunction
|
||||||
|
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||||
|
networking.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.eno2.useDHCP = lib.mkDefault true;
|
||||||
|
# networking.interfaces.wlo1.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
|
|
@ -6,54 +6,30 @@ in {
|
||||||
options.sisyphus.desktop.gnome.enable = lib.mkEnableOption "GNOME";
|
options.sisyphus.desktop.gnome.enable = lib.mkEnableOption "GNOME";
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
services.xserver = {
|
services = {
|
||||||
enable = true;
|
gnome = {
|
||||||
|
core-apps.enable = false;
|
||||||
|
core-developer-tools.enable = false;
|
||||||
|
core-shell.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
excludePackages = with pkgs; [
|
xserver = {
|
||||||
xterm
|
enable = true;
|
||||||
];
|
|
||||||
|
|
||||||
displayManager.gdm.enable = true;
|
excludePackages = with pkgs; [
|
||||||
desktopManager.gnome.enable = true;
|
xterm
|
||||||
|
];
|
||||||
|
|
||||||
|
displayManager.gdm.enable = true;
|
||||||
|
desktopManager.gnome.enable = true;
|
||||||
|
|
||||||
|
videoDrivers = [ "nvidia" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Start a new instance of application instead of going to that window.
|
# Start a new instance of application instead of going to that window.
|
||||||
environment.systemPackages = with pkgs.gnomeExtensions; [
|
environment.systemPackages = with pkgs.gnomeExtensions; [
|
||||||
launch-new-instance
|
launch-new-instance
|
||||||
];
|
];
|
||||||
|
|
||||||
# Do not use these packages
|
|
||||||
environment.gnome.excludePackages = (with pkgs; [
|
|
||||||
baobab
|
|
||||||
epiphany # Web browser
|
|
||||||
evince # Document viewer
|
|
||||||
gnome-connections # Remote desktop client
|
|
||||||
gnome-console
|
|
||||||
gnome-photos
|
|
||||||
gnome-text-editor
|
|
||||||
gnome-tour
|
|
||||||
loupe # Image viewer
|
|
||||||
snapshot # Camera
|
|
||||||
]) ++ (with pkgs.gnome; [
|
|
||||||
eog # Image viewer
|
|
||||||
file-roller # Archive manager
|
|
||||||
geary # Mail client
|
|
||||||
gedit
|
|
||||||
gnome-calculator
|
|
||||||
gnome-calendar
|
|
||||||
gnome-characters
|
|
||||||
gnome-clocks
|
|
||||||
gnome-contacts
|
|
||||||
gnome-disk-utility
|
|
||||||
gnome-font-viewer
|
|
||||||
gnome-logs
|
|
||||||
gnome-maps
|
|
||||||
gnome-music
|
|
||||||
gnome-system-monitor
|
|
||||||
gnome-weather
|
|
||||||
simple-scan
|
|
||||||
totem # Movie player
|
|
||||||
yelp # Help viewer
|
|
||||||
]);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ in {
|
||||||
waycorner
|
waycorner
|
||||||
wlsunset
|
wlsunset
|
||||||
wl-clipboard # Copying to system clipboard in vim
|
wl-clipboard # Copying to system clipboard in vim
|
||||||
|
wl-mirror # Mirror an output
|
||||||
|
wdisplays # Tool to configure displays
|
||||||
|
|
||||||
glib
|
glib
|
||||||
|
|
||||||
|
|
@ -45,9 +47,9 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
dbus.enable = true;
|
||||||
displayManager.ly.enable = true;
|
displayManager.ly.enable = true;
|
||||||
gnome.gnome-keyring.enable = true;
|
gnome.gnome-keyring.enable = true;
|
||||||
power-profiles-daemon.enable = true;
|
|
||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs-unstable, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.sisyphus.virtualisation.virtualbox;
|
cfg = config.sisyphus.virtualisation.virtualbox;
|
||||||
|
|
@ -11,6 +11,7 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableExtensionPack = true;
|
enableExtensionPack = true;
|
||||||
enableHardening = true;
|
enableHardening = true;
|
||||||
|
package = pkgs-unstable.virtualbox;
|
||||||
};
|
};
|
||||||
guest = {
|
guest = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
@ -20,6 +21,12 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# https://www.virtualbox.org/ticket/22248#comment:1
|
||||||
|
# and
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/444438
|
||||||
|
boot.kernelParams = [ "kvm.enable_virt_at_load=0" ];
|
||||||
|
|
||||||
# Define the group
|
# Define the group
|
||||||
users.groups.vboxusers = {};
|
users.groups.vboxusers = {};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ final: prev: {
|
||||||
sha256 = "sha256-UzpHAHpQx2MlmBNKm2turjeVmgp5zXKWm3nZbEo0mYE=";
|
sha256 = "sha256-UzpHAHpQx2MlmBNKm2turjeVmgp5zXKWm3nZbEo0mYE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-oHfk68mAIcmOenW7jn71Xpt8hWVDtxyInWhVN2rH+kk=";
|
cargoHash = "sha256-oGpe+kBf6kBboyx/YfbQBt1vvjtXd1n2pOH6FNcbF8M=";
|
||||||
|
|
||||||
buildInputs = with final; [
|
buildInputs = with final; [
|
||||||
cargo
|
cargo
|
||||||
|
|
|
||||||
|
|
@ -78,14 +78,13 @@ in {
|
||||||
source = ../../../stow/zellij/.config/zellij;
|
source = ../../../stow/zellij/.config/zellij;
|
||||||
};
|
};
|
||||||
".gnupg" = {
|
".gnupg" = {
|
||||||
enable = false;
|
inherit (config.programs.gnupg.agent) enable;
|
||||||
# inherit (config.programs.gnupg.agent) enable; # TODO Enable Me
|
|
||||||
source = ../../../stow/gnupg/.gnupg;
|
source = ../../../stow/gnupg/.gnupg;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
# onChange = ''
|
onChange = ''
|
||||||
# chmod 700 /home/tdpeuter/.gnupg
|
chmod 700 /home/tdpeuter/.gnupg
|
||||||
# chmod 600 /home/tdpeuter/.gnupg/*
|
# chmod 600 /home/tdpeuter/.gnupg/* # Already read-only?
|
||||||
# '';
|
'';
|
||||||
};
|
};
|
||||||
".ssh/config" = lib.mkIf config.sisyphus.programs.ssh.enable {
|
".ssh/config" = lib.mkIf config.sisyphus.programs.ssh.enable {
|
||||||
inherit (config.sisyphus.programs.ssh) enable;
|
inherit (config.sisyphus.programs.ssh) enable;
|
||||||
|
|
@ -104,12 +103,10 @@ in {
|
||||||
}
|
}
|
||||||
(lib.mkIf (config.users.users.tdpeuter.shell == pkgs.zsh) {
|
(lib.mkIf (config.users.users.tdpeuter.shell == pkgs.zsh) {
|
||||||
".oh-my-zsh" = {
|
".oh-my-zsh" = {
|
||||||
enable = config.users.users.tdpeuter.shell == pkgs.zsh;
|
|
||||||
source = "${pkgs.oh-my-zsh}/share/oh-my-zsh";
|
source = "${pkgs.oh-my-zsh}/share/oh-my-zsh";
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
".oh-my-zsh/themes/tdpeuter.zsh-theme" = {
|
".oh-my-zsh/themes/tdpeuter.zsh-theme" = {
|
||||||
enable = config.users.users.tdpeuter.shell == pkgs.zsh;
|
|
||||||
source = ../../../stow/zsh/.oh-my-zsh/themes/tdpeuter.zsh-theme;
|
source = ../../../stow/zsh/.oh-my-zsh/themes/tdpeuter.zsh-theme;
|
||||||
};
|
};
|
||||||
".zshrc" = {
|
".zshrc" = {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ in {
|
||||||
nativeMessagingHosts = with pkgs; [
|
nativeMessagingHosts = with pkgs; [
|
||||||
tridactyl-native
|
tridactyl-native
|
||||||
];
|
];
|
||||||
|
# https://mozilla.github.io/policy-templates/
|
||||||
extraPolicies = {
|
extraPolicies = {
|
||||||
DisableFirefoxStudies = true;
|
DisableFirefoxStudies = true;
|
||||||
DisablePocket = true;
|
DisablePocket = true;
|
||||||
|
|
@ -26,7 +27,20 @@ in {
|
||||||
|
|
||||||
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
||||||
ExtensionSettings = {
|
ExtensionSettings = {
|
||||||
"amazom@search.mozilla.org".installation_mode = "blocked";
|
"amazon@search.mozilla.org".installation_mode = "blocked";
|
||||||
|
"google@search.mozilla.org".installation_mode = "blocked";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Anything in about:config
|
||||||
|
Preferences = {
|
||||||
|
"browser.newtabpage.activity-stream.showSponsoredCheckboxes" = {
|
||||||
|
Value = false;
|
||||||
|
Status = "locked";
|
||||||
|
};
|
||||||
|
"browser.newtabpage.pinned" = {
|
||||||
|
Value = "[]";
|
||||||
|
Status = "default";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -42,12 +56,24 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
profiles.tdpeuter.search= {
|
profiles.tdpeuter.search= {
|
||||||
default = "DuckDuckGo";
|
default = "ddg"; # Reference by id instead of by name
|
||||||
force = true;
|
force = true;
|
||||||
engines = {
|
engines = {
|
||||||
"Bing".metaData.hidden = true;
|
"bing".metaData.hidden = true;
|
||||||
"eBay".metaData.hidden = true;
|
"ebay".metaData.hidden = true;
|
||||||
|
|
||||||
|
"GitHub" = {
|
||||||
|
urls = [{
|
||||||
|
template = "https://github.com/search";
|
||||||
|
params = [
|
||||||
|
{ name = "q"; value = "{searchTerms}"; }
|
||||||
|
{ name = "type"; value = "repositories"; }
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
|
||||||
|
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
|
||||||
|
definedAliases = [ "@gh" ];
|
||||||
|
};
|
||||||
"Nix Packages" = {
|
"Nix Packages" = {
|
||||||
urls = [{
|
urls = [{
|
||||||
template = "https://search.nixos.org/packages";
|
template = "https://search.nixos.org/packages";
|
||||||
|
|
@ -71,18 +97,6 @@ in {
|
||||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||||
definedAliases = [ "@no" ];
|
definedAliases = [ "@no" ];
|
||||||
};
|
};
|
||||||
"GitHub" = {
|
|
||||||
urls = [{
|
|
||||||
template = "https://github.com/search";
|
|
||||||
params = [
|
|
||||||
{ name = "q"; value = "{searchTerms}"; }
|
|
||||||
{ name = "type"; value = "repositories"; }
|
|
||||||
];
|
|
||||||
}];
|
|
||||||
|
|
||||||
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
|
|
||||||
definedAliases = [ "@gh" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue