Skip to content

Commit 062d9fa

Browse files
committed
fixes
1 parent ce91d93 commit 062d9fa

File tree

7 files changed

+47
-33
lines changed

7 files changed

+47
-33
lines changed

Diff for: devshells/nixos.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ journalctl -u home-manager-vic.service "${@}"
3232
name = "os-rebuild"
3333
help = "OS rebuild"
3434
command = """
35-
sudo nix --extra-experimental-features "flakes nix-command" run .#os-rebuild --repair -- "${@}"
35+
sudo nix --extra-experimental-features "flakes nix-command" run .#os-rebuild -- "${@}"
3636
"""
3737

3838
[[commands]]

Diff for: hosts/bombadil/configuration.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# nix build .#.nixosConfigurations.bombadil.config.system.build.isoImage
22
{
33
modulesPath,
4-
pkgs,
54
config,
65
lib,
76
inputs,
@@ -25,6 +24,8 @@
2524
fsType = "ext4";
2625
};
2726

27+
users.users.vic.uid = 1000;
28+
users.users.nixos.uid = 1001;
2829

2930
vix.features.macos-keys.enable = true;
3031

Diff for: hosts/smaug/filesystems.nix

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
];
2020
};
2121

22-
# fileSystems."/home" = {
23-
# device = "/dev/disk/by-uuid/fc6e67f6-3b0f-4a6b-b7ee-6977b5fc98d6";
24-
# fsType = "ext4";
25-
# };
22+
fileSystems."/home" = {
23+
device = "/dev/disk/by-label/home";
24+
fsType = "ext4";
25+
};
2626

2727
# swapDevices = [
2828
# { device = "/dev/disk/by-uuid/6f9b9136-d3aa-4c2d-9e7e-b5aea574bca0"; }

Diff for: modules/home/vic-desktop.nix

+17-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
{ pkgs, osConfig, lib, ... }:
1+
{
2+
pkgs,
3+
osConfig,
4+
lib,
5+
...
6+
}:
27
{
38

4-
home.packages = ([
5-
pkgs.librewolf
6-
pkgs.vscode
7-
pkgs.wezterm
8-
pkgs.ghostty
9-
]) ++ (lib.optionals (osConfig.networking.hostName != "bombadil") [
10-
pkgs.code-cursor
11-
pkgs.zed-editor
12-
]);
9+
home.packages =
10+
([
11+
pkgs.librewolf
12+
pkgs.vscode
13+
pkgs.wezterm
14+
pkgs.ghostty
15+
])
16+
++ (lib.optionals (osConfig.networking.hostName != "bombadil") [
17+
pkgs.code-cursor
18+
pkgs.zed-editor
19+
]);
1320

1421
}

Diff for: modules/home/vic.nix

+21-15
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,22 @@
77
}:
88
{
99

10-
imports = [
11-
./nix-registry.nix
12-
./vic/secrets.nix
13-
./vic/ssh.nix
14-
./vic/fish.nix
15-
./vic/git.nix
16-
./vic/jujutsu.nix
17-
./vic/doom.nix
18-
./vic/nvim.nix
19-
./vic/dots.nix
20-
] ++ (lib.optionals (osConfig.networking.hostName != "bombadil") [
21-
./devshells.nix
22-
./nix-index.nix
23-
]);
10+
imports =
11+
[
12+
./vic/secrets.nix
13+
./vic/ssh.nix
14+
./vic/fish.nix
15+
./vic/git.nix
16+
./vic/jujutsu.nix
17+
./vic/doom.nix
18+
./vic/nvim.nix
19+
./vic/dots.nix
20+
]
21+
++ (lib.optionals (osConfig.networking.hostName != "bombadil") [
22+
./nix-registry.nix
23+
./devshells.nix
24+
./nix-index.nix
25+
]);
2426

2527
home.packages =
2628
let
@@ -34,6 +36,7 @@
3436
pkgs.nixd # lsp
3537
pkgs.nixfmt-rfc-style
3638
pkgs.ispell
39+
pkgs.gh
3740
];
3841

3942
anywhere = nonBombadil ++ [
@@ -50,8 +53,8 @@
5053
pkgs.lazygit # no magit
5154
pkgs.tig # alucard
5255
pkgs.cachix
53-
pkgs.gh
5456
pkgs.jq
57+
pkgs.gparted
5558
];
5659

5760
perHost = {
@@ -60,6 +63,9 @@
6063
perSystem.radicle.radicle-full
6164
perSystem.nix-inspect.default # TODO: enabling it causes GH-action to fail
6265
];
66+
bombadil = [
67+
pkgs.home-manager
68+
];
6369
};
6470

6571
perPlatform = {

Diff for: modules/home/vic/ssh.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
services.ssh-agent.enable = pkgs.stdenv.isLinux;
5353

54-
home.activation.link-ssh-id = lib.hm.dag.entryAfter [ "link-flake" "sops-nix" ] ''
54+
home.activation.link-ssh-id = lib.hm.dag.entryAfter [ "link-flake" "sops-nix" "reloadSystemd" ] ''
5555
run ln -sf "${config.sops.secrets."ssh/id_ed25519".path}" $HOME/.ssh/id_ed25519
5656
'';
5757
}

Diff for: packages/os-rebuild.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ let
1616
platform = os.config.nixpkgs.hostPlatform;
1717
darwin-rebuild = lib.getExe inputs.nix-darwin.packages.${platform.system}.darwin-rebuild;
1818
nixos-rebuild = lib.getExe pkgs.nixos-rebuild;
19-
flake-param = ''--flake "path:${inputs.self}#${name}" --repair'';
19+
flake-param = ''--flake "path:${inputs.self}#${name}" '';
2020
in
2121
pkgs.writeShellApplication {
2222
name = "${name}-os-rebuild";

0 commit comments

Comments
 (0)