From e03aa6c4861c44854ce3f33bf2bcf13b937d3868 Mon Sep 17 00:00:00 2001 From: alisceon Date: Mon, 21 Jul 2025 20:16:37 +0200 Subject: [PATCH] wip --- flake.nix | 3 +++ hosts/laptop/configuration.nix | 29 +++++++++++++++++++++++------ modules/users/alisceon.nix | 4 +++- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index da6a513..fc945ff 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,9 @@ laptop = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ + { + nixpkgs.config.allowUnfree = true; + } ./hosts/laptop/configuration.nix ./modules/common.nix ./modules/users/alisceon.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index bddb64a..7c29c2e 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -4,24 +4,44 @@ imports = [ ./hardware-configuration.nix ]; + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + boot.initrd.luks.devices."luks-654125f4-7b26-408d-b1b5-d31648ec8770".device = "/dev/disk/by-uuid/654125f4-7b26-408d-b1b5-d31648ec8770"; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; networking.hostName = "electra"; networking.networkmanager.enable = true; - time.timeZone = "UTC"; + time.timeZone = "Europe/Stockholm"; i18n.defaultLocale = "en_US.UTF-8"; + i18n.extraLocaleSettings = { + LC_ADDRESS = "sv_SE.UTF-8"; + LC_IDENTIFICATION = "sv_SE.UTF-8"; + LC_MEASUREMENT = "sv_SE.UTF-8"; + LC_MONETARY = "sv_SE.UTF-8"; + LC_NAME = "sv_SE.UTF-8"; + LC_NUMERIC = "sv_SE.UTF-8"; + LC_PAPER = "sv_SE.UTF-8"; + LC_TELEPHONE = "sv_SE.UTF-8"; + LC_TIME = "sv_SE.UTF-8"; + }; + + services.xserver = { enable = true; displayManager.gdm.enable = true; desktopManager.gnome.enable = true; - xkb.layout = "us"; + xkb.layout = "se"; displayManager.gdm.wayland = true; }; + console.keyMap = "sv-latin1"; + services.printing.enable = true; - sound.enable = true; hardware.pulseaudio.enable = false; services.pipewire = { enable = true; @@ -36,7 +56,6 @@ isNormalUser = true; extraGroups = [ "wheel" "networkmanager" "podman" ]; shell = pkgs.fish; - hashedPassword = "!" ; # placeholder }; security.sudo.wheelNeedsPassword = false; @@ -71,8 +90,6 @@ defaultNetwork.settings.dns_enabled = true; }; - services.tlp.enable = true; - programs.dconf.enable = true; environment.shells = with pkgs; [ fish ]; diff --git a/modules/users/alisceon.nix b/modules/users/alisceon.nix index 5399ce8..4ca7423 100644 --- a/modules/users/alisceon.nix +++ b/modules/users/alisceon.nix @@ -10,7 +10,9 @@ programs.vscode.enable = true; programs.firefox = { enable = true; - nativeMessagingHosts = true; + nativeMessagingHosts = [ + pkgs.gnome-browser-connector + ]; }; programs.obsidian.enable = true;