tangled
alpha
login
or
join now
encode42.dev
/
nixos
0
fork
atom
Personal-use NixOS configuration
0
fork
atom
overview
issues
pulls
pipelines
Split `encode42` user into its own `user` directory
encode42.dev
7 months ago
03358c1a
20dc6e8d
+51
-29
9 changed files
expand all
collapse all
unified
split
homes
encode42
common
default.nix
home-manager.nix
hosts
decryption
homes
encode42.nix
users
encode42.nix
encryption
homes
encode42.nix
users
encode42.nix
readme.md
users
encode42
common
default.nix
user.nix
+13
homes/encode42/common/default.nix
···
1
1
+
{
2
2
+
imports = [
3
3
+
./home-manager.nix
4
4
+
5
5
+
./fastfetch.nix
6
6
+
./fish.nix
7
7
+
./git.nix
8
8
+
9
9
+
./bat.nix
10
10
+
./eza.nix
11
11
+
./xh.nix
12
12
+
];
13
13
+
}
+5
homes/encode42/common/home-manager.nix
···
1
1
+
{
2
2
+
programs.home-manager = {
3
3
+
enable = true;
4
4
+
};
5
5
+
}
+2
-2
hosts/decryption/homes/encode42.nix
···
7
7
8
8
{
9
9
imports = [
10
10
-
(flakeRoot + /homes/encode42/common/fastfetch.nix)
11
11
-
(flakeRoot + /homes/encode42/common/fish.nix)
10
10
+
(flakeRoot + /homes/encode42/common)
11
11
+
12
12
(flakeRoot + /homes/encode42/common/github.nix)
13
13
(flakeRoot + /homes/encode42/common/direnv.nix)
14
14
+2
-10
hosts/decryption/users/encode42.nix
···
7
7
8
8
{
9
9
imports = [
10
10
-
(flakeRoot + /packages/common/fish.nix)
11
11
-
(flakeRoot + /packages/common/git.nix)
10
10
+
(flakeRoot + /users/encode42/common)
11
11
+
12
12
(flakeRoot + /packages/common/yubikey.nix)
13
13
14
14
(flakeRoot + /packages/desktop/gnome/goldwarden.nix)
···
17
17
(flakeRoot + /packages/desktop/steam.nix)
18
18
];
19
19
20
20
-
users.users.encode42 = {
21
21
-
isNormalUser = true;
22
22
-
23
23
-
shell = pkgs.fish;
24
24
-
};
25
25
-
26
20
home-manager.users.encode42 = {
27
21
imports = [
28
22
../homes/encode42.nix
29
23
];
30
30
-
31
31
-
programs.home-manager.enable = true;
32
24
33
25
home.stateVersion = "24.05";
34
26
};
+2
-6
hosts/encryption/homes/encode42.nix
···
7
7
8
8
{
9
9
imports = [
10
10
-
(flakeRoot + /homes/encode42/common/fastfetch.nix)
11
11
-
(flakeRoot + /homes/encode42/common/fish.nix)
10
10
+
(flakeRoot + /homes/encode42/common)
11
11
+
12
12
(flakeRoot + /homes/encode42/common/github.nix)
13
13
(flakeRoot + /homes/encode42/common/direnv.nix)
14
14
-
15
15
-
(flakeRoot + /homes/encode42/common/bat.nix)
16
16
-
(flakeRoot + /homes/encode42/common/eza.nix)
17
17
-
(flakeRoot + /homes/encode42/common/xh.nix)
18
14
19
15
(flakeRoot + /homes/encode42/common/imagemagik.nix)
20
16
+2
-10
hosts/encryption/users/encode42.nix
···
7
7
8
8
{
9
9
imports = [
10
10
-
(flakeRoot + /packages/common/fish.nix)
11
11
-
(flakeRoot + /packages/common/git.nix)
10
10
+
(flakeRoot + /users/encode42/common)
11
11
+
12
12
(flakeRoot + /packages/common/yubikey.nix)
13
13
14
14
(flakeRoot + /packages/desktop/gnome/goldwarden.nix)
···
18
18
(flakeRoot + /packages/desktop/steam.nix)
19
19
];
20
20
21
21
-
users.users.encode42 = {
22
22
-
isNormalUser = true;
23
23
-
24
24
-
shell = pkgs.fish;
25
25
-
};
26
26
-
27
21
home-manager.users.encode42 = {
28
22
imports = [
29
23
../homes/encode42.nix
30
24
];
31
31
-
32
32
-
programs.home-manager.enable = true;
33
25
34
26
home.stateVersion = "24.05";
35
27
};
+2
-1
readme.md
···
3
3
- `hardware`: Specialized hardware configuration
4
4
- `homes`: User-owned home-manager directories
5
5
- `hosts`: Machine configuration
6
6
-
- `users`: Users present on the system
6
6
+
- `users`: Machine-owned users on the machine
7
7
- `homes`: User-owned home-manager configurations
8
8
- `lib`: Helper functions
9
9
- `modules`: System modules and relevant configuration
10
10
- `packages`: Program package configuration
11
11
+
- `users`: Machine-owned common user configuration
11
12
12
13
Useful resources:
13
14
- [Disko Quickstart](https://github.com/nix-community/disko/blob/master/docs/quickstart.md)
+14
users/encode42/common/default.nix
···
1
1
+
{
2
2
+
flakeRoot,
3
3
+
pkgs,
4
4
+
...
5
5
+
}:
6
6
+
7
7
+
{
8
8
+
imports = [
9
9
+
./user.nix
10
10
+
11
11
+
(flakeRoot + /packages/common/fish.nix)
12
12
+
(flakeRoot + /packages/common/git.nix)
13
13
+
];
14
14
+
}
+9
users/encode42/common/user.nix
···
1
1
+
{ pkgs, ... }:
2
2
+
3
3
+
{
4
4
+
users.users.encode42 = {
5
5
+
isNormalUser = true;
6
6
+
7
7
+
shell = pkgs.fish;
8
8
+
};
9
9
+
}