Add git config and initial emacs config.

This commit is contained in:
Tom Alexander
2024-12-20 13:12:27 -05:00
parent 7e768022e7
commit ba3a6e74eb
31 changed files with 1399 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, pkgs-unstable, ... }:
{ config, lib, pkgs, pkgs-unstable, home-manager, ... }:
{
imports =
@@ -9,6 +9,8 @@
./zfs.nix
./network.nix
./roles/sway
./roles/emacs
./roles/git
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
@@ -33,6 +35,14 @@
"sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIAFNcSXwvy+brYTOGo56G93Ptuq2MmZsjvRWAfMqbmMLAAAABHNzaDo="
];
};
home-manager.users.talexander = { pkgs, ... }: {
home.packages = [ pkgs.atool pkgs.httpie ];
programs.bash.enable = true;
# The state version is required and should stay at the version you
# originally installed.
home.stateVersion = "24.11";
};
# Automatic garbage collection
nix.gc = {
@@ -56,7 +66,6 @@
environment.defaultPackages = lib.mkForce [];
environment.systemPackages = with pkgs; [
git
wget
mg
rsync
@@ -112,8 +121,8 @@
unitConfig.DefaultDependencies = "no";
serviceConfig.Type = "oneshot";
script = ''
zfs rollback -r zroot/linux/root@blank
zfs rollback -r zroot/linux/home@blank
zfs rollback -r zroot/linux/nix/root@blank
zfs rollback -r zroot/linux/nix/home@blank
echo "rollback complete"
'';
};
@@ -121,8 +130,6 @@
environment.persistence."/persist" = {
hideMounts = true;
directories = [
"/etc/nixos" # Contains system configuration, optional
"/etc/NetworkManager/system-connections" # Wifi settings
"/var/lib/iwd" # Wifi settings
"/var/lib/nixos" # Contains user information (uids/gids)
];