diff options
author | Simon Parri <simonparri@ganzeria.com> | 2025-06-06 11:52:35 -0500 |
---|---|---|
committer | Simon Parri <simonparri@ganzeria.com> | 2025-06-06 11:53:10 -0500 |
commit | fdd799bf06c5d40cb8a3e8292ee76bff265765f9 (patch) | |
tree | 8f946a023fbcd7167b01fd56e0678e75122cca8e /hosts/carrot | |
parent | e5dabe1f612b2efda79a2296733340da6cf7c9bc (diff) | |
download | nixos-config-fdd799bf06c5d40cb8a3e8292ee76bff265765f9.tar.gz nixos-config-fdd799bf06c5d40cb8a3e8292ee76bff265765f9.zip |
hosts: Rename muspell to carrot
Diffstat (limited to 'hosts/carrot')
-rw-r--r-- | hosts/carrot/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/hosts/carrot/default.nix b/hosts/carrot/default.nix new file mode 100644 index 0000000..cea43df --- /dev/null +++ b/hosts/carrot/default.nix @@ -0,0 +1,59 @@ +{ inputs, lib, pkgs, ... }: + +let inherit (inputs) mobile-nixos; +in +{ + imports = [ + (import "${mobile-nixos}/lib/configuration.nix" { + device = "pine64-pinephone"; + }) + ]; + + this.locales.default = "us"; + + time.timeZone = "America/Chicago"; + + this.pc.enable = true; + + this.users.enabled = ["simon"]; + + this.sets = { + cli.tools.full = true; + de.utils = true; + media.tools = true; + net.tools.minimal = true; + script.utils = true; + sound.tools = true; + sys.tools = true; + www.browser = true; + }; + + services.xserver = { + enable = true; + desktopManager.plasma5.mobile.enable = true; + displayManager.lightdm = { + enable = true; + # Workaround for autologin only working at first launch. + # A logout or session crashing will show the login screen otherwise. + extraSeatDefaults = '' + session-cleanup-script=${pkgs.procps}/bin/pkill -P1 -fx ${pkgs.lightdm}/sbin/lightdm + ''; + }; + }; + + hardware.bluetooth.enable = true; + powerManagement.enable = true; + services.libinput.enable = true; + services.displayManager.defaultSession = "plasma-mobile"; + services.displayManager.autoLogin.enable = true; + services.displayManager.autoLogin.user = "simon"; + + # Ensures any rndis config from stage-1 is not clobbered by NetworkManager + networking.networkmanager.unmanaged = [ "rndis0" "usb0" ]; + + # Setup USB gadget networking in initrd... + mobile.boot.stage-1.networking.enable = true; + + nixpkgs.hostPlatform = "aarch64-linux"; + system.stateVersion = "24.11"; +} |