a dotfile but it's really big
0
fork

Configure Feed

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

refactor some code

+20 -68
+1 -24
modules/default.nix
··· 69 69 { 70 70 lib = { 71 71 sdImageFromSystem = system: system.config.system.build.sdImage; 72 - 73 - mkSystem' = 74 - system: hostname: 75 - withSystem system ( 76 - { inputs', self', ... }: 77 - lib.nixosSystem { 78 - specialArgs = { 79 - inherit 80 - inputs 81 - inputs' 82 - self 83 - self' 84 - ; 85 - }; 86 - modules = [ 87 - { networking.hostName = hostname; } 88 - ./core.nix 89 - ./systems/${hostname} 90 - ]; 91 - } 92 - ); 93 - 94 - mkSystem = system: hostname: { ${hostname} = self.lib.mkSystem' system hostname; }; 95 - mkSystems = system: hosts: lib.mergeAttrsList (map (self.lib.mkSystem system) hosts); 96 72 }; 97 73 98 74 overlays.default = import ./overlays; ··· 105 81 nixosModules = { 106 82 dev = import ./dev/nixos.nix; 107 83 desktop = import ./desktop/nixos.nix; 84 + acme-nginx = import ./services/acme-nginx.nix; 108 85 multi-scrobbler = import ./services/multi-scrobbler.nix; 109 86 }; 110 87 };
+1 -23
modules/desktop/locale.nix
··· 5 5 ... 6 6 }: 7 7 { 8 - config = lib.mkIf config.desktop.locale.enable { 9 - time.timeZone = "Europe/Paris"; 10 - 11 - console = { 12 - keyMap = "us-acentos"; 13 - packages = [ pkgs.kbd ]; 14 - }; 15 - 16 - i18n = { 17 - defaultLocale = "en_US.UTF-8"; 18 - extraLocaleSettings = { 19 - LC_ADDRESS = "fr_FR.UTF-8"; 20 - LC_IDENTIFICATION = "fr_FR.UTF-8"; 21 - LC_MEASUREMENT = "fr_FR.UTF-8"; 22 - LC_MONETARY = "fr_FR.UTF-8"; 23 - LC_NAME = "fr_FR.UTF-8"; 24 - LC_NUMERIC = "fr_FR.UTF-8"; 25 - LC_PAPER = "fr_FR.UTF-8"; 26 - LC_TELEPHONE = "fr_FR.UTF-8"; 27 - LC_TIME = "fr_FR.UTF-8"; 28 - }; 29 - }; 30 - }; 8 + config = lib.mkIf config.desktop.locale.enable (import ../locale.nix { inherit pkgs; }); 31 9 }
+11 -1
modules/server/default.nix
··· 1 - _: { 1 + { 2 + config, 3 + lib, 4 + inputs, 5 + ... 6 + }: 7 + { 8 + my.username = lib.mkDefault "root"; 9 + 2 10 services = { 3 11 tailscale = { 4 12 enable = true; ··· 6 14 }; 7 15 openssh.enable = true; 8 16 }; 17 + 18 + users.users.${config.my.username}.openssh.authorizedKeys.keyFiles = lib.mkIf (inputs ? ssh-keys) [ inputs.ssh-keys ]; 9 19 }
+5 -3
modules/tags/work.nix
··· 1 - { config, ... }: 1 + { config, lib, ... }: 2 2 { 3 - desktop.yubikey.enable = true; 4 - programs._1password.enable = true; 3 + config = lib.mkIf config.desktop.enable { 4 + desktop.yubikey.enable = true; 5 + programs._1password.enable = true; 6 + }; 5 7 6 8 home-manager.users.${config.my.username} = { 7 9 xdg.configFile."git/config".text = ''
+1 -5
systems/reg/default.nix
··· 1 - { config, inputs, ... }: 1 + { inputs, ... }: 2 2 { 3 - my.username = "root"; 4 - 5 3 imports = [ 6 4 inputs.sops-nix.nixosModules.sops 7 5 ./hardware.nix ··· 17 15 enable = true; 18 16 host = "0.0.0.0"; 19 17 }; 20 - 21 - users.users.${config.my.username}.openssh.authorizedKeys.keyFiles = [ inputs.ssh-keys ]; 22 18 23 19 system.stateVersion = "25.05"; 24 20 }
-2
systems/reg/hardware.nix
··· 21 21 device = "/dev/sda1"; 22 22 fsType = "ext4"; 23 23 }; 24 - boot.tmp.cleanOnBoot = true; 25 - zramSwap.enable = true; 26 24 nixpkgs.hostPlatform = "x86_64-linux"; 27 25 }
+1 -10
systems/wakuna/default.nix
··· 1 - { 2 - inputs, 3 - lib, 4 - modulesPath, 5 - config, 6 - ... 7 - }: 1 + { lib, modulesPath, ... }: 8 2 { 9 3 imports = [ 10 4 (modulesPath + "/installer/sd-card/sd-image-aarch64-installer.nix") ··· 12 6 ]; 13 7 14 8 sdImage.compressImage = false; 15 - my.username = "root"; 16 9 nixpkgs.hostPlatform = "aarch64-linux"; 17 10 system.stateVersion = "24.11"; 18 11 ··· 24 17 "usb_storage" 25 18 ]; 26 19 }; 27 - 28 - users.users.${config.my.username}.openssh.authorizedKeys.keyFiles = [ inputs.ssh-keys ]; 29 20 30 21 services.openssh.settings.PermitRootLogin = "yes"; 31 22 }