Configuring my impermanence correctly

This commit is contained in:
Tyler Kelley 2024-02-11 04:25:04 -06:00
parent a99c1a0b94
commit c3492b2af2
5 changed files with 32 additions and 7 deletions

View File

@ -9,7 +9,7 @@
"/etc/NetworkManager/system-connections"
];
files = [
"/etc/machine-id"
# "/etc/machine-id"
];
users.${username} = {
directories = [

View File

@ -224,6 +224,21 @@
"type": "github"
}
},
"impermanence": {
"locked": {
"lastModified": 1706639736,
"narHash": "sha256-CaG4j9+UwBDfinxxvJMo6yOonSmSo0ZgnbD7aj2Put0=",
"owner": "nix-community",
"repo": "impermanence",
"rev": "cd13c2917eaa68e4c49fea0ff9cada45440d7045",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "impermanence",
"type": "github"
}
},
"nix-colors": {
"inputs": {
"base16-schemes": "base16-schemes",
@ -368,6 +383,7 @@
"home-manager": "home-manager",
"hyprland": "hyprland",
"hyprland-plugins": "hyprland-plugins",
"impermanence": "impermanence",
"nix-colors": "nix-colors",
"nixpkgs": "nixpkgs_2",
"nixvim": "nixvim"

View File

@ -15,13 +15,14 @@
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
};
outputs = inputs@{ nixpkgs, home-manager, ... }:
outputs = inputs@{ nixpkgs, home-manager, impermanence, ... }:
let
system = "x86_64-linux";
username = "zaney";
hostname = "hyprnix";
username = builtins.exec "echo $USER";
hostname = builtins.exec "hostname";
pkgs = import nixpkgs {
inherit system;
@ -38,6 +39,7 @@
};
modules = [
./system.nix
impermanence.nixosModules.impermanence
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = {
inherit username; inherit inputs;

View File

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, pkgs, modulesPath, username, ... }:
{
imports =
@ -18,7 +18,7 @@
{
device = "none";
fsType = "tmpfs";
options = [ "defaults" "size=25%" "mode=755" ];
options = [ "defaults" "size=35%" "mode=755" ];
};
fileSystems."/boot" =
@ -43,6 +43,13 @@
options = [ "bind" ];
};
fileSystems."/home/${username}/zaneyos" =
{
device = "/nix/persist/etc/nixos/zaneyos";
fsType = "none";
options = [ "bind" ];
};
fileSystems."/var/log" =
{
device = "/nix/persist/var/log";

View File

@ -4,7 +4,7 @@
let
# YOU MUST CHANGE THIS
userHome = "/home/zaney";
userHome = builtins.exec "eval echo ~$USER";
in {
# User Variables
gitUsername = "Tyler Kelley";