mostly fix up stateVersions

This commit is contained in:
steveej 2024-01-22 23:47:48 +00:00
parent 82362958db
commit d26e64452d
8 changed files with 136 additions and 122 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: { { pkgs, lib, ... }: {
# TODO: re-enable this with the appropriate version? # TODO: re-enable this with the appropriate version?
# programs.home-manager.enable = true; # programs.home-manager.enable = true;
# programs.home-manager.path = https://github.com/rycee/home-manager/archive/445c0b1482c38172a9f8294ee16a7ca7462388e5.tar.gz; # programs.home-manager.path = https://github.com/rycee/home-manager/archive/445c0b1482c38172a9f8294ee16a7ca7462388e5.tar.gz;
@ -83,6 +83,4 @@
usbutils usbutils
pciutils pciutils
]); ]);
home.stateVersion = "22.05";
} }

View file

@ -1,18 +1,19 @@
{ { pkgs
pkgs, , config
config, , lib
lib, , # packages',
# packages', repoFlakeInputs'
repoFlakeInputs', , ...
... }:
}: let let
inherit (import ../lib.nix {}) mkSimpleTrayService; inherit (import ../lib.nix { }) mkSimpleTrayService;
lockCmd = "${pkgs.swaylock}/bin/swaylock -efF --color '#000000'"; lockCmd = "${pkgs.swaylock}/bin/swaylock -efF --color '#000000'";
displayOffCmd = "${pkgs.sway}/bin/swaymsg 'output * power off'"; displayOffCmd = "${pkgs.sway}/bin/swaymsg 'output * power off'";
displayOnCmd = "${pkgs.sway}/bin/swaymsg 'output * power on'"; displayOnCmd = "${pkgs.sway}/bin/swaymsg 'output * power on'";
swapOutputWorkspaces = ../../../scripts/sway-swapoutputworkspaces.sh; swapOutputWorkspaces = ../../../scripts/sway-swapoutputworkspaces.sh;
in { in
{
imports = [ imports = [
../profiles/wayland-desktop.nix ../profiles/wayland-desktop.nix
../programs/waybar.nix ../programs/waybar.nix
@ -103,12 +104,14 @@ in {
systemd.enable = true; systemd.enable = true;
xwayland = true; xwayland = true;
config = let config =
let
modifier = "Mod4"; modifier = "Mod4";
inherit (config.wayland.windowManager.sway.config) left right up down; inherit (config.wayland.windowManager.sway.config) left right up down;
in { in
{
inherit modifier; inherit modifier;
bars = []; bars = [ ];
input = { input = {
"type:keyboard" = "type:keyboard" =
@ -116,7 +119,7 @@ in {
xkb_layout = config.home.keyboard.layout; xkb_layout = config.home.keyboard.layout;
xkb_variant = config.home.keyboard.variant; xkb_variant = config.home.keyboard.variant;
} }
// lib.attrsets.optionalAttrs (builtins.length (config.home.keyboard.options or []) > 0) { // lib.attrsets.optionalAttrs (builtins.length (config.home.keyboard.options or [ ]) > 0) {
xkb_options = builtins.concatStringsSep "," config.home.keyboard.options; xkb_options = builtins.concatStringsSep "," config.home.keyboard.options;
}; };
@ -195,6 +198,7 @@ in {
childBorder = lib.mkForce "#ffa500"; childBorder = lib.mkForce "#ffa500";
}; };
window.titlebar = false;
window.border = 4; window.border = 4;
# this maps to focus_on_window_activation # this maps to focus_on_window_activation

View file

@ -4,7 +4,12 @@
, nodeFlake , nodeFlake
, ... , ...
}: { }: {
system.stateVersion = "23.05";
home-manager.users.root = _: {
home.stateVersion = "22.05";
};
home-manager.users.steveej = _: { home-manager.users.steveej = _: {
home.stateVersion = "22.05";
imports = [ imports = [
../../../home-manager/configuration/graphical-fullblown.nix ../../../home-manager/configuration/graphical-fullblown.nix
@ -103,5 +108,4 @@
# # }; # # };
# }; # };
system.stateVersion = "23.05";
} }

View file

@ -8,7 +8,7 @@ let
inherit (pkgs.callPackage ../../lib/default.nix { }) mkUser; inherit (pkgs.callPackage ../../lib/default.nix { }) mkUser;
in in
{ {
users.extraUsers.steveej2 = mkUser { users.users.steveej2 = mkUser {
uid = 1001; uid = 1001;
openssh.authorizedKeys.keys = keys.users.steveej.openssh; openssh.authorizedKeys.keys = keys.users.steveej.openssh;
hashedPasswordFile = config.sops.secrets.sharedUsers-steveej.path; hashedPasswordFile = config.sops.secrets.sharedUsers-steveej.path;

View file

@ -55,6 +55,7 @@
nodeFlake.inputs.home-manager.nixosModules.home-manager nodeFlake.inputs.home-manager.nixosModules.home-manager
../../snippets/sway-desktop.nix ../../snippets/sway-desktop.nix
../../snippets/timezone.nix
# ../../snippets/radicale.nix # ../../snippets/radicale.nix
]; ];
@ -82,6 +83,9 @@
]; ];
system.stateVersion = "23.11"; system.stateVersion = "23.11";
home-manager.users.root = _: {
home.stateVersion = "23.11";
};
home-manager.users.steveej = _: { home-manager.users.steveej = _: {
home.stateVersion = "23.11"; home.stateVersion = "23.11";
@ -89,6 +93,9 @@
../../../home-manager/configuration/graphical-fullblown.nix ../../../home-manager/configuration/graphical-fullblown.nix
]; ];
# seems to be broke on install
programs.chromium.enable = lib.mkForce false;
home.sessionVariables = { }; home.sessionVariables = { };
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -30,6 +30,7 @@
targetPlatform = "aarch64-linux"; targetPlatform = "aarch64-linux";
buildPlatform = "x86_64-linux"; buildPlatform = "x86_64-linux";
nodeName = "steveej-x13s"; nodeName = "steveej-x13s";
repoFlake = get-flake ../../../..;
mkNixosConfiguration = { extraModules ? [ ], ... } @ attrs: mkNixosConfiguration = { extraModules ? [ ], ... } @ attrs:
nixpkgs.lib.nixosSystem ( nixpkgs.lib.nixosSystem (
@ -38,15 +39,14 @@
{ {
specialArgs = (import ./default.nix { specialArgs = (import ./default.nix {
system = targetPlatform; system = targetPlatform;
inherit nodeName; inherit nodeName repoFlake;
repoFlake = get-flake ../../../..;
nodeFlake = self; nodeFlake = self;
}).meta.nodeSpecialArgs.${nodeName}; }).meta.nodeSpecialArgs.${nodeName};
modules = modules =
[ [
({ repoFlake, ... }: repoFlake.nixosModules.hardware-x13s) repoFlake.nixosModules.hardware-x13s
./configuration.nix ./configuration.nix
] ]

View file

@ -65,12 +65,13 @@ in
security.pam.services.getty.enableGnomeKeyring = true; security.pam.services.getty.enableGnomeKeyring = true;
services.gnome.gnome-keyring.enable = true; services.gnome.gnome-keyring.enable = true;
# autologin steveej on tty1 # autologin steveej on tty1
# TODO: make user configurable
systemd.services."autovt@tty1".description = "Autologin at the TTY1"; systemd.services."autovt@tty1".description = "Autologin at the TTY1";
systemd.services."autovt@tty1".after = [ "systemd-logind.service" ]; # without it user session not started and xorg can't be run from this tty systemd.services."autovt@tty1".after = [ "systemd-logind.service" ]; # without it user session not started and xorg can't be run from this tty
systemd.services."autovt@tty1".wantedBy = [ "multi-user.target" ]; systemd.services."autovt@tty1".wantedBy = [ "multi-user.target" ];
systemd.services."autovt@tty1".serviceConfig = systemd.services."autovt@tty1".serviceConfig = {
{
ExecStart = [ ExecStart = [
"" # override upstream default with an empty ExecStart "" # override upstream default with an empty ExecStart
"@${pkgs.utillinux}/sbin/agetty agetty --login-program ${pkgs.shadow}/bin/login --autologin steveej --noclear %I $TERM" "@${pkgs.utillinux}/sbin/agetty agetty --login-program ${pkgs.shadow}/bin/login --autologin steveej --noclear %I $TERM"
@ -84,7 +85,7 @@ in
fi fi
''; '';
home-manager.users.${homeUser} = _: { home-manager.users."${homeUser}" = _: {
imports = [ imports = [
../../home-manager/profiles/sway-desktop.nix ../../home-manager/profiles/sway-desktop.nix
]; ];

View file

@ -1,7 +1,7 @@
{ lib, ... }: { lib, ... }:
let let
passwords = import ../../../variables/passwords.crypt.nix; passwords = import ../../variables/passwords.crypt.nix;
in in
{ {