Replace uses of home-manager.

This commit is contained in:
Tom Alexander 2025-08-10 15:34:29 -04:00
parent c947def321
commit f4338ec8df
No known key found for this signature in database
GPG Key ID: D3A179C9A53C0EDE
21 changed files with 114 additions and 215 deletions

View File

@ -2,7 +2,6 @@
config, config,
lib, lib,
pkgs, pkgs,
home-manager,
... ...
}: }:
@ -79,11 +78,11 @@
]; ];
# me.install.user.file.talexander.".local/nixcfg" = ./README.org; # me.install.user.file.talexander.".local/nixcfg" = ./README.org;
me.install.user.talexander.file.".local/nixcfg" = { # me.install.user.talexander.file.".local/nixcfg" = {
source = ./roles; # source = ./roles;
recursive = true; # # recursive = true;
method = "overwrite"; # # method = "overwrite";
}; # };
nix.settings.experimental-features = [ nix.settings.experimental-features = [
"nix-command" "nix-command"
@ -130,21 +129,6 @@
]; ];
}; };
users.groups.talexander.gid = 11235; users.groups.talexander.gid = 11235;
home-manager.users.talexander =
{ pkgs, ... }:
{
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.11";
};
home-manager.users.root =
{ pkgs, ... }:
{
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.11";
};
# Automatic garbage collection # Automatic garbage collection
nix.gc = lib.mkIf (!config.me.buildingIso) { nix.gc = lib.mkIf (!config.me.buildingIso) {

View File

@ -147,26 +147,6 @@
"type": "github" "type": "github"
} }
}, },
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1751549056,
"narHash": "sha256-miKaJ4SFNxhZ/WVDADae2jNd9zka5bV9hKmXspAzvxo=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "1fa73bb2cc39e250eb01e511ae6ac83bfbf9f38c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "home-manager",
"type": "github"
}
},
"impermanence": { "impermanence": {
"locked": { "locked": {
"lastModified": 1737831083, "lastModified": 1737831083,
@ -303,7 +283,6 @@
"inputs": { "inputs": {
"ansible-sshjail": "ansible-sshjail", "ansible-sshjail": "ansible-sshjail",
"disko": "disko", "disko": "disko",
"home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",

View File

@ -45,8 +45,6 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-dda3dcd3f.url = "github:NixOS/nixpkgs/dda3dcd3fe03e991015e9a74b22d35950f264a54"; nixpkgs-dda3dcd3f.url = "github:NixOS/nixpkgs/dda3dcd3fe03e991015e9a74b22d35950f264a54";
nixpkgs-unoptimized.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs-unoptimized.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
lanzaboote = { lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2"; url = "github:nix-community/lanzaboote/v0.4.2";
@ -78,7 +76,6 @@
nixpkgs-unoptimized, nixpkgs-unoptimized,
nixpkgs-dda3dcd3f, nixpkgs-dda3dcd3f,
impermanence, impermanence,
home-manager,
lanzaboote, lanzaboote,
zsh-histdb, zsh-histdb,
ansible-sshjail, ansible-sshjail,
@ -99,13 +96,8 @@
}; };
modules = [ modules = [
impermanence.nixosModules.impermanence impermanence.nixosModules.impermanence
home-manager.nixosModules.home-manager
lanzaboote.nixosModules.lanzaboote lanzaboote.nixosModules.lanzaboote
inputs.disko.nixosModules.disko inputs.disko.nixosModules.disko
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
}
{ {
nixpkgs.overlays = [ nixpkgs.overlays = [
zsh-histdb.overlays.default zsh-histdb.overlays.default

View File

@ -24,10 +24,8 @@
xdg-utils # for xdg-open xdg-utils # for xdg-open
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".config/alacritty/alacritty.toml" = {
{
home.file.".config/alacritty/alacritty.toml" = {
source = ./files/alacritty.toml; source = ./files/alacritty.toml;
}; };
}; };

View File

@ -141,10 +141,8 @@ in
}) })
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".config/emacs" = {
{
home.file.".config/emacs" = {
source = ./files/emacs; source = ./files/emacs;
recursive = true; recursive = true;
}; };

View File

@ -36,10 +36,8 @@ in
]; ];
} }
(lib.mkIf (config.me.git.config != null) { (lib.mkIf (config.me.git.config != null) {
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".gitconfig" = {
{
home.file.".gitconfig" = {
source = config.me.git.config; source = config.me.git.config;
}; };
}; };

View File

@ -57,11 +57,8 @@ in
# disable-ccid = true; # disable-ccid = true;
# }; # };
# .gnupg/scdaemon.conf me.install.user.talexander.file = {
home-manager.users.talexander = ".gnupg/scdaemon.conf" = {
{ pkgs, ... }:
{
home.file.".gnupg/scdaemon.conf" = {
source = ./files/scdaemon.conf; source = ./files/scdaemon.conf;
}; };
}; };

View File

@ -41,15 +41,11 @@ in
exec_kanshi exec_kanshi
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }:
{
home.file = {
".config/kanshi/config" = { ".config/kanshi/config" = {
source = ./files/config_kanshi; source = ./files/config_kanshi;
}; };
}; };
};
}) })
] ]
); );

View File

@ -78,9 +78,6 @@
}; };
}; };
home-manager.users.kodi =
{ pkgs, ... }:
{
# home.file.".kodi/userdata/mediasources.xml".source = ./files/mediasources.xml; # home.file.".kodi/userdata/mediasources.xml".source = ./files/mediasources.xml;
# home.file.".kodi/userdata/addon_data/peripheral.joystick/resources/buttonmaps/xml/linux/DualSense_Wireless_Controller_13b_8a.xml".source = # home.file.".kodi/userdata/addon_data/peripheral.joystick/resources/buttonmaps/xml/linux/DualSense_Wireless_Controller_13b_8a.xml".source =
@ -88,11 +85,6 @@
# TODO: Maybe .kodi/userdata/sources.xml # TODO: Maybe .kodi/userdata/sources.xml
# TODO: ./userdata/guisettings.xml:303: <setting id="filecache.memorysize">128</setting> # TODO: ./userdata/guisettings.xml:303: <setting id="filecache.memorysize">128</setting>
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.11";
};
}) })
] ]
); );

View File

@ -52,10 +52,8 @@ in
imv imv
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".config/mpv/mpv.conf" = {
{
home.file.".config/mpv/mpv.conf" = {
source = ./files/mpv.conf; source = ./files/mpv.conf;
}; };
}; };

View File

@ -82,10 +82,8 @@
}; };
}; };
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".config/PCSX2/inis/PCSX2.ini" = {
{
home.file.".config/PCSX2/inis/PCSX2.ini" = {
source = ./files/PCSX2.ini; source = ./files/PCSX2.ini;
}; };
}; };

View File

@ -70,24 +70,22 @@ in
} }
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".config/rpcs3/config.yml" = lib.mkIf (config.me.rpcs3.config != null) {
{
home.file.".config/rpcs3/config.yml" = lib.mkIf (config.me.rpcs3.config != null) {
source = rpcs3_config_yaml; source = rpcs3_config_yaml;
}; };
home.file.".config/rpcs3/GuiConfigs/CurrentSettings.ini" = { ".config/rpcs3/GuiConfigs/CurrentSettings.ini" = {
source = ./files/CurrentSettings.ini; source = ./files/CurrentSettings.ini;
}; };
home.file.".config/rpcs3/custom_configs/config_BLUS30443.yml" = { ".config/rpcs3/custom_configs/config_BLUS30443.yml" = {
# Demon's Souls per-game config. # Demon's Souls per-game config.
source = ./files/config_BLUS30443.yml; source = ./files/config_BLUS30443.yml;
}; };
home.file.".config/rpcs3/patches/patch.yml" = { ".config/rpcs3/patches/patch.yml" = {
# All of the available patches. # All of the available patches.
source = ./files/patch.yml; source = ./files/patch.yml;
}; };
home.file.".config/rpcs3/patch_config.yml" = { ".config/rpcs3/patch_config.yml" = {
# Patches that I have enabled. # Patches that I have enabled.
source = ./files/patch_config.yml; source = ./files/patch_config.yml;
}; };

View File

@ -48,10 +48,7 @@ in
# ? cargo-public-api # ? cargo-public-api
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }:
{
home.file = {
".cargo/config.toml" = { ".cargo/config.toml" = {
source = ./files/cargo_config.toml; source = ./files/cargo_config.toml;
}; };
@ -59,7 +56,6 @@ in
source = ./files/rustup_settings.toml; source = ./files/rustup_settings.toml;
}; };
}; };
};
environment.persistence."/state" = lib.mkIf (!config.me.buildingIso) { environment.persistence."/state" = lib.mkIf (!config.me.buildingIso) {
hideMounts = true; hideMounts = true;

View File

@ -24,10 +24,8 @@
shadps4 shadps4
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".local/share/shadPS4/config.toml" = {
{
home.file.".local/share/shadPS4/config.toml" = {
source = ./files/config.toml; source = ./files/config.toml;
}; };
}; };

View File

@ -36,15 +36,11 @@ in
exec_shikane exec_shikane
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }:
{
home.file = {
".config/shikane/config.toml" = { ".config/shikane/config.toml" = {
source = ./files/config.toml; source = ./files/config.toml;
}; };
}; };
};
}) })
] ]
); );

View File

@ -27,19 +27,14 @@
}; };
}; };
home-manager.users.talexander = me.install.user.root.file = {
{ pkgs, ... }: ".ssh/config" = {
{
home.file.".ssh/config" = {
source = ./files/ssh_config;
};
};
home-manager.users.root =
{ pkgs, ... }:
{
home.file.".ssh/config" = {
source = ./files/ssh_config_root; source = ./files/ssh_config_root;
}; };
}; };
me.install.user.talexander.file = {
".ssh/config" = {
source = ./files/ssh_config;
};
};
} }

View File

@ -376,26 +376,18 @@ in
}; };
}; };
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }:
{
home.file = {
# Configure default programs (for example, default browser)
".config/mimeapps.list" = { ".config/mimeapps.list" = {
# Configure default programs (for example, default browser)
source = ./files/mimeapps.list; source = ./files/mimeapps.list;
}; };
};
home.file = {
".config/gtk-3.0/settings.ini" = { ".config/gtk-3.0/settings.ini" = {
source = ./files/settings.ini; source = ./files/settings.ini;
}; };
};
home.file = {
".icons/default" = { ".icons/default" = {
source = "${pkgs.adwaita-icon-theme}/share/icons/Adwaita"; source = "${pkgs.adwaita-icon-theme}/share/icons/Adwaita";
}; };
}; };
};
# For mounting drives in pcmanfm # For mounting drives in pcmanfm
services.gvfs.enable = true; services.gvfs.enable = true;

View File

@ -48,13 +48,11 @@
}) })
]; ];
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".config/Code/User/settings.json" = {
{
home.file.".config/Code/User/settings.json" = {
source = ./files/settings.json; source = ./files/settings.json;
}; };
home.file.".config/Code/User/keybindings.json" = { ".config/Code/User/keybindings.json" = {
source = ./files/keybindings.json; source = ./files/keybindings.json;
}; };
}; };

View File

@ -113,10 +113,7 @@ in
services.upower.enable = true; # for battery services.upower.enable = true; # for battery
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }:
{
home.file = {
".config/waybar/config" = { ".config/waybar/config" = {
source = ./files/waybar_config.json; source = ./files/waybar_config.json;
}; };
@ -124,7 +121,6 @@ in
source = ./files/style.css; source = ./files/style.css;
}; };
}; };
};
}) })
] ]
); );

View File

@ -90,10 +90,8 @@ in
enable = true; enable = true;
}; };
home-manager.users.talexander = me.install.user.talexander.file = {
{ pkgs, ... }: ".zshrc" = {
{
home.file.".zshrc" = {
source = "${zshrc}"; source = "${zshrc}";
}; };
}; };

View File

@ -72,7 +72,8 @@ let
else else
[ [
'' ''
$DRY_RUN_CMD install $VERBOSE_ARG -D --compare ${flags} ${source} ${destination} create_containing_directories ${destination} ${dir_flags}
$DRY_RUN_CMD install $VERBOSE_ARG --compare ${flags} ${source} ${destination}
'' ''
] ]
); );
@ -142,6 +143,7 @@ let
else else
[ [
'' ''
create_containing_directories ${destination} ${dir_flags}
$DRY_RUN_CMD ln $VERBOSE_ARG -s ${source} ${destination} $DRY_RUN_CMD ln $VERBOSE_ARG -s ${source} ${destination}
$DRY_RUN_CMD chown $VERBOSE_ARG -h ${owner} ${destination} $DRY_RUN_CMD chown $VERBOSE_ARG -h ${owner} ${destination}
'' ''
@ -298,7 +300,7 @@ in
description = "me-install-file"; description = "me-install-file";
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
wants = [ "multi-user.target" ]; wants = [ "multi-user.target" ];
after = [ "multi-user.target" ]; before = [ "multi-user.target" ];
# path = with pkgs; [ # path = with pkgs; [
# zfs # zfs
# ]; # ];