Skip to content

Commit ce91d93

Browse files
committed
Config bombadil
1 parent 74eaf2d commit ce91d93

File tree

7 files changed

+101
-59
lines changed

7 files changed

+101
-59
lines changed

Diff for: flake.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: hosts/bombadil/configuration.nix

+43-20
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,52 @@
1-
# nix build .#.nixosConfigurations.installer.config.system.build.isoImage
1+
# nix build .#.nixosConfigurations.bombadil.config.system.build.isoImage
22
{
33
modulesPath,
44
pkgs,
55
config,
6+
lib,
7+
inputs,
68
...
79
}:
810
{
9-
imports = [
10-
"${toString modulesPath}/installer/cd-dvd/installation-cd-graphical-calamares-gnome.nix"
11-
];
12-
boot.initrd.kernelModules = [ "wl" ];
13-
boot.kernelModules = [
14-
"kvm-intel"
15-
"wl"
16-
];
17-
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
18-
nixpkgs.hostPlatform = "x86_64-linux";
19-
nixpkgs.config.allowUnfree = true;
20-
environment.systemPackages = [
21-
pkgs.vim
22-
pkgs.git
23-
pkgs.sops
24-
];
25-
nix.settings.experimental-features = [
26-
"nix-command"
27-
"flakes"
11+
imports = with inputs.self.nixosModules; [
12+
"${toString modulesPath}/installer/cd-dvd/installation-cd-base.nix"
13+
nix-features
14+
vic
15+
vic-autologin
16+
macos-keys
17+
kvm-intel
18+
wl-broadcom
19+
all-firmware
20+
./static.nix
2821
];
22+
23+
lib.isoFileSystems."/home/vic" = {
24+
device = "/dev/disk/by-label/vic";
25+
fsType = "ext4";
26+
};
27+
28+
29+
vix.features.macos-keys.enable = true;
30+
31+
isoImage.edition = lib.mkDefault config.networking.hostName;
32+
networking.networkmanager.enable = true;
33+
networking.wireless.enable = lib.mkImageMediaOverride false;
34+
35+
hardware.bluetooth.enable = true;
36+
hardware.bluetooth.powerOnBoot = true;
37+
services.blueman.enable = true;
38+
services.pulseaudio.enable = false;
39+
40+
# https://gist.github.com/nat-418/1101881371c9a7b419ba5f944a7118b0
41+
services.xserver = {
42+
enable = true;
43+
desktopManager = {
44+
xterm.enable = false;
45+
xfce.enable = true;
46+
};
47+
};
48+
services.displayManager = {
49+
defaultSession = "xfce";
50+
enable = true;
51+
};
2952
}

Diff for: hosts/bombadil/static.nix

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
networking.hostName = "bombadil";
3+
nixpkgs.hostPlatform = "x86_64-linux";
4+
system.stateVersion = "25.05";
5+
}

Diff for: hosts/bombadil/users/vic.nix

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{ inputs, ... }:
2+
{
3+
imports = with inputs.self.homeModules; [
4+
vic
5+
vic-desktop
6+
];
7+
home.stateVersion = with import ./../static.nix; system.stateVersion;
8+
}

Diff for: hosts/smaug/filesystems.nix

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@
66
{
77

88
fileSystems."/" = {
9-
device = "/dev/disk/by-uuid/28a29cc4-7325-4911-a96a-9d82d1fb2021";
9+
device = "/dev/disk/by-label/nixos";
1010
fsType = "ext4";
1111
};
1212

1313
fileSystems."/boot" = {
14-
device = "/dev/disk/by-uuid/856A-9AB5";
14+
device = "/dev/disk/by-label/boot";
1515
fsType = "vfat";
1616
options = [
1717
"fmask=0077"
1818
"dmask=0077"
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-uuid/fc6e67f6-3b0f-4a6b-b7ee-6977b5fc98d6";
24+
# fsType = "ext4";
25+
# };
2626

27-
swapDevices = [
28-
{ device = "/dev/disk/by-uuid/6f9b9136-d3aa-4c2d-9e7e-b5aea574bca0"; }
29-
];
27+
# swapDevices = [
28+
# { device = "/dev/disk/by-uuid/6f9b9136-d3aa-4c2d-9e7e-b5aea574bca0"; }
29+
# ];
3030

3131
}

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

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
{ pkgs, ... }:
1+
{ pkgs, osConfig, lib, ... }:
22
{
33

4-
home.packages = with pkgs; [
5-
librewolf
6-
vscode
7-
wezterm
8-
ghostty
9-
code-cursor
10-
zed-editor
11-
];
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+
]);
1213

1314
}

Diff for: modules/home/vic.nix

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
lib,
23
pkgs,
34
perSystem,
45
osConfig,
@@ -7,9 +8,7 @@
78
{
89

910
imports = [
10-
./devshells.nix
1111
./nix-registry.nix
12-
./nix-index.nix
1312
./vic/secrets.nix
1413
./vic/ssh.nix
1514
./vic/fish.nix
@@ -18,35 +17,41 @@
1817
./vic/doom.nix
1918
./vic/nvim.nix
2019
./vic/dots.nix
21-
];
20+
] ++ (lib.optionals (osConfig.networking.hostName != "bombadil") [
21+
./devshells.nix
22+
./nix-index.nix
23+
]);
2224

2325
home.packages =
2426
let
25-
anywhere = [
26-
perSystem.nix-versions.default
27+
nonBombadil = lib.optionals (osConfig.networking.hostName != "bombadil") [
2728
perSystem.nox.default
2829
perSystem.self.devicon-lookup # for eee
2930
perSystem.self.leader
31+
pkgs.yazi # file tui
32+
pkgs.zoxide # cd
33+
pkgs.nix-search-cli
34+
pkgs.nixd # lsp
35+
pkgs.nixfmt-rfc-style
36+
pkgs.ispell
37+
];
38+
39+
anywhere = nonBombadil ++ [
40+
perSystem.nix-versions.default
3041
perSystem.self.vic-sops-get
3142
pkgs.tree
3243
pkgs.fzf
3344
pkgs.ripgrep # grep
3445
pkgs.bat # cat
3546
pkgs.bottom
3647
pkgs.htop
37-
pkgs.yazi # file tui
3848
pkgs.eza # ls
39-
pkgs.zoxide # cd
4049
pkgs.fd # find
4150
pkgs.lazygit # no magit
4251
pkgs.tig # alucard
4352
pkgs.cachix
4453
pkgs.gh
4554
pkgs.jq
46-
pkgs.nix-search-cli
47-
pkgs.nixd # lsp
48-
pkgs.nixfmt-rfc-style
49-
pkgs.ispell
5055
];
5156

5257
perHost = {

0 commit comments

Comments
 (0)