Skip to content

Commit ce37d94

Browse files
committed
new laptop installation & submodule migration
migration to (zpool) migrating gitlab to new acc.
1 parent ea58e8f commit ce37d94

File tree

6 files changed

+49
-23
lines changed

6 files changed

+49
-23
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "dots"]
22
path = dots
3-
url = [email protected]:ngyj/dots.git
3+
url = [email protected]:yokodake/dots.git

configuration.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# your system. Help is available in the configuration.nix(5) man page
33
# and in the NixOS manual (accessible by running ‘nixos-help’).
44
{ config, pkgs, ... }:
5-
5+
# configuration.nix
66
{
77
boot.tmpOnTmpfs = true;
88

@@ -110,11 +110,16 @@
110110
ffmpeg
111111
firefox-devedition-bin
112112
git
113+
gnome3.polari
114+
haskell.compiler.ghc881
115+
haskellPackages.cabal-install
113116
haskellPackages.hlint
117+
haskellPackages.stack
114118
haskellPackages.xmobar
115119
htop
116120
jpegoptim
117121
kdeApplications.kio-extras
122+
kdeFrameworks.breeze-icons
118123
keepassxc
119124
krita
120125
krusader
@@ -127,7 +132,6 @@
127132
optipng
128133
p7zip
129134
pavucontrol
130-
gnome3.polari
131135
psmisc
132136
racket
133137
ripgrep
@@ -147,6 +151,7 @@
147151
xscreensaver
148152
zathura
149153
zip
154+
clang-tools
150155
];
151156

152157
nix.gc.automatic = true;

desktop.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
# desktop.nix
12
{ config, pkgs, ... }:
2-
33
{
44
imports =
55
[ # Include the results of the hardware scan.

hw-desktop.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
# hw-desktop.nix
12
# Do not modify this file! It was generated by ‘nixos-generate-config’
23
# and may be overwritten by future invocations. Please make changes
34
# to /etc/nixos/configuration.nix instead.
45
{ config, lib, pkgs, ... }:
5-
66
{
77
imports =
88
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>

hw-laptop.nix

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,41 @@
1+
# hw-laptop.nix
12
# Do not modify this file! It was generated by ‘nixos-generate-config’
23
# and may be overwritten by future invocations. Please make changes
34
# to /etc/nixos/configuration.nix instead.
45
{ config, lib, pkgs, ... }:
5-
66
{
77
imports =
88
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
99
];
1010

1111
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
12+
boot.initrd.kernelModules = [ "dm-snapshot" ];
1213
boot.kernelModules = [ "kvm-intel" ];
1314
boot.extraModulePackages = [ ];
1415

1516
fileSystems."/" =
16-
{ device = "/dev/disk/by-uuid/c2d3cf5f-bc4b-4bb7-8849-edcfe9db5ae7";
17-
fsType = "xfs";
17+
{ device = "rpool/root";
18+
fsType = "zfs";
19+
};
20+
21+
fileSystems."/home" =
22+
{ device = "rpool/home";
23+
fsType = "zfs";
1824
};
1925

2026
fileSystems."/boot" =
21-
{ device = "/dev/disk/by-uuid/1719-C806";
27+
{ device = "/dev/disk/by-uuid/925D-346A";
2228
fsType = "vfat";
2329
};
2430

2531
swapDevices =
26-
[ { device = "/dev/disk/by-uuid/7cfdbb12-6017-41a7-aabe-caf52abe5f21"; }
32+
[ { device = "/dev/disk/by-uuid/f9af689c-8d7c-4646-a573-58f0ea55e75d"; }
2733
];
34+
2835
boot.initrd.luks.devices = [
2936
{
30-
name = "encpv";
31-
device = "/dev/disk/by-uuid/f3f172d0-4b0f-4a44-8ede-ed71ecde002a";
37+
name = "main";
38+
device = "/dev/disk/by-uuid/84b64e62-2879-4f44-85e4-db209dc6e8b1";
3239
preLVM = true;
3340
}
3441
];

laptop.nix

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
# laptop.nix
12
{ config, pkgs, ... }:
2-
33
{
44
imports =
55
[ # Include the results of the hardware scan.
@@ -21,27 +21,41 @@
2121
};
2222
boot.blacklistedKernelModules = [ "radeon" ];
2323

24-
networking.networkmanager.enable = true;
25-
networking.hostName = "kusanagi"; # Define your hostname.
24+
networking = {
25+
networkmanager.enable = true;
26+
hostName = "kusanagi"; # Define your hostname.
27+
hostId = "8425e349"; # Required by zfs.
28+
29+
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
30+
# Per-interface useDHCP will be mandatory in the future, so this generated config
31+
# replicates the default behaviour.
32+
useDHCP = false;
33+
interfaces = {
34+
enp0s31f6.useDHCP = true;
35+
vboxnet0.useDHCP = true;
36+
wlp1s0.useDHCP = true;
37+
};
38+
};
2639

2740
# List services that you want to enable:
2841
services = {
2942
# Enable the X11 windowing system.
30-
xserver = {
31-
libinput.enable = true;
32-
libinput.middleEmulation = true;
33-
libinput.tapping = true;
43+
xserver.libinput = {
44+
enable = true;
45+
middleEmulation = true;
46+
tapping = true;
3447
};
3548
sshd.enable = true;
3649
};
3750
programs.qt5ct.enable = true;
38-
hardware.opengl.enable = true;
39-
hardware.opengl.driSupport32Bit = true;
51+
hardware.opengl = {
52+
enable = true;
53+
driSupport32Bit = true;
54+
};
4055

4156
# This value determines the NixOS release with which your system is to be
4257
# compatible, in order to avoid breaking some software such as database
4358
# servers. You should change this only after NixOS release notes say you
4459
# should.
45-
system.stateVersion = "19.03"; # Did you read the comment?
46-
60+
system.stateVersion = "19.09"; # Did you read the comment?
4761
}

0 commit comments

Comments
 (0)