❄️ Nix configurations
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

add otter

Alex Ottr d70b170d 57fc6680

+198 -12
+12 -12
flake.lock
··· 10 10 "systems": "systems" 11 11 }, 12 12 "locked": { 13 - "lastModified": 1747514353, 14 - "narHash": "sha256-E1WjB+zvDw4x058mg3MIdK5j2huvnNpTEEt2brhg2H8=", 13 + "lastModified": 1747575206, 14 + "narHash": "sha256-NwmAFuDUO/PFcgaGGr4j3ozG9Pe5hZ/ogitWhY+D81k=", 15 15 "owner": "ryantm", 16 16 "repo": "agenix", 17 - "rev": "6697e8babbd8f323dfd5e28f160a0128582c128b", 17 + "rev": "4835b1dc898959d8547a871ef484930675cb47f1", 18 18 "type": "github" 19 19 }, 20 20 "original": { ··· 52 52 ] 53 53 }, 54 54 "locked": { 55 - "lastModified": 1747274630, 56 - "narHash": "sha256-87RJwXbfOHyzTB9LYagAQ6vOZhszCvd8Gvudu+gf3qo=", 55 + "lastModified": 1749436314, 56 + "narHash": "sha256-CqmqU5FRg5AadtIkxwu8ulDSOSoIisUMZRLlcED3Q5w=", 57 57 "owner": "nix-community", 58 58 "repo": "disko", 59 - "rev": "ec7c109a4f794fce09aad87239eab7f66540b888", 59 + "rev": "dfa4d1b9c39c0342ef133795127a3af14598017a", 60 60 "type": "github" 61 61 }, 62 62 "original": { ··· 88 88 }, 89 89 "nixos-hardware": { 90 90 "locked": { 91 - "lastModified": 1747129300, 92 - "narHash": "sha256-L3clA5YGeYCF47ghsI7Tcex+DnaaN/BbQ4dR2wzoiKg=", 91 + "lastModified": 1749195551, 92 + "narHash": "sha256-W5GKQHgunda/OP9sbKENBZhMBDNu2QahoIPwnsF6CeM=", 93 93 "owner": "NixOS", 94 94 "repo": "nixos-hardware", 95 - "rev": "e81fd167b33121269149c57806599045fd33eeed", 95 + "rev": "4602f7e1d3f197b3cb540d5accf5669121629628", 96 96 "type": "github" 97 97 }, 98 98 "original": { ··· 103 103 }, 104 104 "nixpkgs": { 105 105 "locked": { 106 - "lastModified": 1747467164, 107 - "narHash": "sha256-JBXbjJ0t6T6BbVc9iPVquQI9XSXCGQJD8c8SgnUquus=", 106 + "lastModified": 1749558678, 107 + "narHash": "sha256-DUVAe8E2X2QM0dAnTGlTiqemMqUMMyIeCH7UeNo0g64=", 108 108 "owner": "NixOS", 109 109 "repo": "nixpkgs", 110 - "rev": "3fcbdcfc707e0aa42c541b7743e05820472bdaec", 110 + "rev": "a12f3a99614894502e73eb816e9e076b0ab05730", 111 111 "type": "github" 112 112 }, 113 113 "original": {
+8
flake.nix
··· 23 23 agenix.nixosModules.default 24 24 ]; 25 25 }; 26 + 27 + nixosConfigurations.otter = nixpkgs.lib.nixosSystem { 28 + system = "x86_64-linux"; 29 + modules = [ 30 + ./hosts/otter 31 + agenix.nixosModules.default 32 + ]; 33 + }; 26 34 }; 27 35 }
+130
hosts/otter/configuration.nix
··· 1 + { config, pkgs, ... }: 2 + 3 + { 4 + imports = 5 + [ # Include the results of the hardware scan. 6 + ./hardware-configuration.nix 7 + ]; 8 + 9 + # Bootloader. 10 + boot.loader.systemd-boot.enable = true; 11 + boot.loader.efi.canTouchEfiVariables = true; 12 + 13 + # Use latest kernel. 14 + boot.kernelPackages = pkgs.linuxPackages_latest; 15 + 16 + boot.initrd.luks.devices."luks-7736f743-324d-43d9-b3ad-5ddd3b3bd0e0".device = "/dev/disk/by-uuid/7736f743-324d-43d9-b3ad-5ddd3b3bd0e0"; 17 + networking.hostName = "otter"; # Define your hostname. 18 + # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 19 + 20 + # Configure network proxy if necessary 21 + # networking.proxy.default = "http://user:password@proxy:port/"; 22 + # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; 23 + 24 + # Enable networking 25 + networking.networkmanager.enable = true; 26 + 27 + # Set your time zone. 28 + time.timeZone = "Europe/Paris"; 29 + 30 + # Select internationalisation properties. 31 + i18n.defaultLocale = "en_US.UTF-8"; 32 + 33 + i18n.extraLocaleSettings = { 34 + LC_ADDRESS = "fr_FR.UTF-8"; 35 + LC_IDENTIFICATION = "fr_FR.UTF-8"; 36 + LC_MEASUREMENT = "fr_FR.UTF-8"; 37 + LC_MONETARY = "fr_FR.UTF-8"; 38 + LC_NAME = "fr_FR.UTF-8"; 39 + LC_NUMERIC = "fr_FR.UTF-8"; 40 + LC_PAPER = "fr_FR.UTF-8"; 41 + LC_TELEPHONE = "fr_FR.UTF-8"; 42 + LC_TIME = "fr_FR.UTF-8"; 43 + }; 44 + 45 + # Enable the X11 windowing system. 46 + # You can disable this if you're only using the Wayland session. 47 + services.xserver.enable = true; 48 + 49 + # Enable the KDE Plasma Desktop Environment. 50 + services.displayManager.sddm.enable = true; 51 + services.desktopManager.plasma6.enable = true; 52 + 53 + # Configure keymap in X11 54 + services.xserver.xkb = { 55 + layout = "us"; 56 + variant = ""; 57 + }; 58 + 59 + # Enable CUPS to print documents. 60 + services.printing.enable = true; 61 + 62 + # Enable sound with pipewire. 63 + services.pulseaudio.enable = false; 64 + security.rtkit.enable = true; 65 + services.pipewire = { 66 + enable = true; 67 + alsa.enable = true; 68 + alsa.support32Bit = true; 69 + pulse.enable = true; 70 + # If you want to use JACK applications, uncomment this 71 + #jack.enable = true; 72 + 73 + # use the example session manager (no others are packaged yet so this is enabled by default, 74 + # no need to redefine it in your config for now) 75 + #media-session.enable = true; 76 + }; 77 + 78 + # Enable touchpad support (enabled default in most desktopManager). 79 + # services.xserver.libinput.enable = true; 80 + 81 + # Define a user account. Don't forget to set a password with ‘passwd’. 82 + users.users.alex = { 83 + isNormalUser = true; 84 + description = "Alex"; 85 + extraGroups = [ "networkmanager" "wheel" ]; 86 + packages = with pkgs; [ 87 + kdePackages.kate 88 + # thunderbird 89 + ]; 90 + }; 91 + 92 + # Install firefox. 93 + programs.firefox.enable = true; 94 + 95 + # Allow unfree packages 96 + nixpkgs.config.allowUnfree = true; 97 + 98 + # List packages installed in system profile. To search, run: 99 + # $ nix search wget 100 + environment.systemPackages = with pkgs; [ 101 + curl 102 + ]; 103 + 104 + # Some programs need SUID wrappers, can be configured further or are 105 + # started in user sessions. 106 + # programs.mtr.enable = true; 107 + # programs.gnupg.agent = { 108 + # enable = true; 109 + # enableSSHSupport = true; 110 + # }; 111 + 112 + # List services that you want to enable: 113 + 114 + # Enable the OpenSSH daemon. 115 + # services.openssh.enable = true; 116 + 117 + # Open ports in the firewall. 118 + # networking.firewall.allowedTCPPorts = [ ... ]; 119 + # networking.firewall.allowedUDPPorts = [ ... ]; 120 + # Or disable the firewall altogether. 121 + # networking.firewall.enable = false; 122 + 123 + # This value determines the NixOS release from which the default 124 + # settings for stateful data, like file locations and database versions 125 + # on your system were taken. It‘s perfectly fine and recommended to leave 126 + # this value at the release version of the first install of this system. 127 + # Before changing this value read the documentation for this option 128 + # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 129 + system.stateVersion = "25.05"; # Did you read the comment? 130 + }
+6
hosts/otter/default.nix
··· 1 + { pkgs, ...}: 2 + { 3 + imports = [ 4 + ./configuration.nix 5 + ]; 6 + }
+42
hosts/otter/hardware-configuration.nix
··· 1 + { config, lib, pkgs, modulesPath, ... }: 2 + 3 + { 4 + imports = 5 + [ (modulesPath + "/installer/scan/not-detected.nix") 6 + ]; 7 + 8 + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usb_storage" "sd_mod" ]; 9 + boot.initrd.kernelModules = [ ]; 10 + boot.kernelModules = [ "kvm-amd" ]; 11 + boot.extraModulePackages = [ ]; 12 + 13 + powerManagement.cpuFreqGovernor = "powersave"; 14 + 15 + fileSystems."/" = 16 + { device = "/dev/disk/by-uuid/9b07d71e-c941-4369-97d7-eb2d8b223508"; 17 + fsType = "ext4"; 18 + }; 19 + 20 + boot.initrd.luks.devices."luks-6b51b97c-343f-4c6a-a1ae-13202885de6d".device = "/dev/disk/by-uuid/6b51b97c-343f-4c6a-a1ae-13202885de6d"; 21 + 22 + fileSystems."/boot" = 23 + { device = "/dev/disk/by-uuid/4274-3AC6"; 24 + fsType = "vfat"; 25 + options = [ "fmask=0077" "dmask=0077" ]; 26 + }; 27 + 28 + swapDevices = 29 + [ { device = "/dev/disk/by-uuid/8e8176f7-0b19-4fed-8ddf-721cc27abe2f"; } 30 + ]; 31 + 32 + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 33 + # (the default) this is the recommended approach. When using systemd-networkd it's 34 + # still possible to use this option, but it's recommended to use it in conjunction 35 + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 36 + networking.useDHCP = lib.mkDefault true; 37 + # networking.interfaces.enp193s0f3u1.useDHCP = lib.mkDefault true; 38 + # networking.interfaces.wlp1s0.useDHCP = lib.mkDefault true; 39 + 40 + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 41 + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 42 + }