this repo has no description
1
fork

Configure Feed

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

tty module for attlerock

Ben C 9338f187 e9c67a55

+43 -13
+8 -1
nixosConfigurations/attlerock.nix
··· 10 10 outputs.nixosModules.default 11 11 inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t430 12 12 { 13 - home-manager.users.bean.home.stateVersion = "25.05"; 13 + home-manager.users.bean = { 14 + home.stateVersion = "25.05"; 15 + xdg.userDirs.setSessionVariables = true; 16 + }; 14 17 system.stateVersion = "25.05"; 15 18 networking.hostName = "attlerock"; 16 19 ··· 23 26 24 27 cow = { 25 28 base.enable = true; 29 + tty = { 30 + enable = true; 31 + autoLogin = true; 32 + }; 26 33 hm.enable = true; 27 34 network.enable = true; 28 35 cat.enable = true;
+4 -12
nixosConfigurations/installer.nix
··· 17 17 "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" 18 18 ]; 19 19 20 - services.getty.autologinUser = lib.mkForce "root"; 21 - 22 - services.kmscon = { 23 - enable = true; 24 - fonts = [ 25 - { 26 - name = "SauceCodePro Nerd Font Mono"; 27 - package = pkgs.nerd-fonts.sauce-code-pro; 28 - } 29 - ]; 30 - }; 31 - 32 20 boot = let 33 21 supportedFilesystems = { 34 22 btrfs = true; ··· 83 71 84 72 cow = { 85 73 base.enable = true; 74 + tty = { 75 + enable = true; 76 + autoLogin = true; 77 + }; 86 78 network = { 87 79 enable = true; 88 80 wireless = true;
+31
nixosModules/tty.nix
··· 1 + { 2 + config, 3 + lib, 4 + pkgs, 5 + ... 6 + }: { 7 + options.cow.tty = { 8 + enable = lib.mkEnableOption "make TTY kmscon with optional auto-login"; 9 + autoLogin = lib.mkEnableOption "autologin for bean if bean is enabled, else root"; 10 + }; 11 + 12 + config = lib.mkIf config.cow.tty.enable { 13 + services.getty.autologinUser = lib.mkIf config.cow.tty.autoLogin ( 14 + lib.mkForce ( 15 + if config.cow.bean.enable 16 + then "bean" 17 + else "root" 18 + ) 19 + ); 20 + 21 + services.kmscon = { 22 + enable = true; 23 + fonts = [ 24 + { 25 + name = "Maple Mono"; 26 + package = pkgs.maple-mono.NF-CN; 27 + } 28 + ]; 29 + }; 30 + }; 31 + }