mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-02-13 19:00:19 +01:00
ZeNixLaptop: init
This commit is contained in:
parent
ec787bd1bf
commit
b8a4e9ecee
5 changed files with 95 additions and 1 deletions
|
|
@ -452,7 +452,8 @@
|
|||
ZeNixLaptop = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
modules = [
|
||||
./hostconfig/ZeNixComputa/extra_info.nix
|
||||
./hostconfig/ZeNixLaptop/extra_info.nix
|
||||
./hostconfig/ZeNixLaptop/nixos.nix
|
||||
self.nixosModules.minimal
|
||||
self.nixosModules.personal-cli
|
||||
self.nixosModules.personal-gui
|
||||
|
|
@ -478,10 +479,13 @@
|
|||
...
|
||||
}: {
|
||||
imports = [
|
||||
./hostconfig/ZeNixLaptop/extra_info.nix
|
||||
./hostconfig/ZeNixLaptop/hm.nix
|
||||
self.hmModules.minimal
|
||||
self.hmModules.personal-cli
|
||||
self.hmModules.personal-gui
|
||||
self.hmModules.gaming
|
||||
inputs.fioul.homeManagerModules.default
|
||||
];
|
||||
};
|
||||
home-manager.extraSpecialArgs = {
|
||||
|
|
|
|||
5
hostconfig/ZeNixLaptop/extra_info.nix
Normal file
5
hostconfig/ZeNixLaptop/extra_info.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
extraInfo.username = "traxys";
|
||||
|
||||
extraInfo.email = "quentin+dev@familleboyer.net";
|
||||
}
|
||||
33
hostconfig/ZeNixLaptop/hardware-configuration.nix
Normal file
33
hostconfig/ZeNixLaptop/hardware-configuration.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# 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,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = ["ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci"];
|
||||
boot.initrd.kernelModules = ["dm-snapshot"];
|
||||
boot.kernelModules = ["kvm-intel"];
|
||||
boot.extraModulePackages = [];
|
||||
boot.kernelParams = ["iomem=relaxed"];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/95baa216-c7f1-418d-be70-cd1d4102c837";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/disk/by-uuid/50e43b17-10c8-4bbe-893a-c709172867db";
|
||||
fsType = "btrfs";
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
];
|
||||
}
|
||||
9
hostconfig/ZeNixLaptop/hm.nix
Normal file
9
hostconfig/ZeNixLaptop/hm.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{config, ...}: {
|
||||
programs.git = {
|
||||
userName = "traxys";
|
||||
userEmail = config.extraInfo.email;
|
||||
};
|
||||
|
||||
traxys.waybar.modules."battery".enable = true;
|
||||
home.stateVersion = "21.11";
|
||||
}
|
||||
43
hostconfig/ZeNixLaptop/nixos.nix
Normal file
43
hostconfig/ZeNixLaptop/nixos.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
luks.devices = {
|
||||
root = {
|
||||
device = "/dev/disk/by-uuid/de0242ac-788a-44fc-a1ef-8d7bfaa448c6";
|
||||
preLVM = true;
|
||||
#keyFile = "/etc/secrets/initrd/keyfile";
|
||||
fallbackToPassword = true;
|
||||
};
|
||||
home = {
|
||||
device = "/dev/disk/by-uuid/b028c674-64c5-40e0-88c4-481d78854049";
|
||||
preLVM = true;
|
||||
#keyFile = "/etc/secrets/initrd/keyfile";
|
||||
fallbackToPassword = true;
|
||||
};
|
||||
};
|
||||
secrets = {
|
||||
"/etc/secrets/initrd/keyfile" = "/etc/secrets/initrd/keyfile";
|
||||
};
|
||||
#kernelParams = [ "iomem=relaxed" ];
|
||||
};
|
||||
loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
version = 2;
|
||||
device = "nodev";
|
||||
enableCryptodisk = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.hostName = "ZeNixLaptop";
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
system.stateVersion = "21.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue