change from mono-home-manager to full flake multi-system configuration
This commit is contained in:
60
hosts/t440p/configuration.nix
Normal file
60
hosts/t440p/configuration.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [ # Include the results of the hardware scan and modules
|
||||
./hardware-configuration.nix
|
||||
./../../modules/desktop.nix
|
||||
./../../modules/secrets.nix
|
||||
./../../modules/security.nix
|
||||
./../../modules/unfree.nix
|
||||
./../../modules/users.nix
|
||||
#./../../modules/wifi.nix
|
||||
];
|
||||
|
||||
networking.hostName = "t440p";
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.initrd.luks.devices."luks-1c04b05d-0ddf-429a-95c3-1f5fdb570207".device = "/dev/disk/by-uuid/1c04b05d-0ddf-429a-95c3-1f5fdb570207";
|
||||
|
||||
# Set time zone and internationalisation
|
||||
time.timeZone = "Europe/Berlin";
|
||||
i18n.defaultLocale = "de_DE.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "de_DE.UTF-8";
|
||||
LC_IDENTIFICATION = "de_DE.UTF-8";
|
||||
LC_MEASUREMENT = "de_DE.UTF-8";
|
||||
LC_MONETARY = "de_DE.UTF-8";
|
||||
LC_NAME = "de_DE.UTF-8";
|
||||
LC_NUMERIC = "de_DE.UTF-8";
|
||||
LC_PAPER = "de_DE.UTF-8";
|
||||
LC_TELEPHONE = "de_DE.UTF-8";
|
||||
LC_TIME = "de_DE.UTF-8";
|
||||
};
|
||||
|
||||
console.keyMap = "de";
|
||||
|
||||
# List packages installed in system profile.
|
||||
# To search, run: $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
curl
|
||||
git
|
||||
vim
|
||||
tree
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "25.05"; # Did you read the comment?
|
||||
|
||||
}
|
||||
43
hosts/t440p/hardware-configuration.nix
Normal file
43
hosts/t440p/hardware-configuration.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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 = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-intel" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/48e4d114-d841-4506-862b-eb4ba2101767";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-153f407e-269d-4a10-9544-4d2946a49824".device = "/dev/disk/by-uuid/153f407e-269d-4a10-9544-4d2946a49824";
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/1747-74BD";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/64dcaac6-e355-4ca7-aa0c-40b1184baf18"; }
|
||||
];
|
||||
|
||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||
# still possible to use this option, but it's recommended to use it in conjunction
|
||||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.enp0s25.useDHCP = lib.mkDefault true;
|
||||
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
36
hosts/t440p/home.nix
Normal file
36
hosts/t440p/home.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ inputs, ... }: {
|
||||
imports = [ ../../home/_home.nix ];
|
||||
|
||||
homeModules = {
|
||||
#androidstudio.enable = true;
|
||||
#backup.enable = true;
|
||||
chromium.enable = true;
|
||||
#design.enable = true;
|
||||
embedded.enable = true;
|
||||
fonts.enable = true;
|
||||
git.enable = true;
|
||||
#javascript.enable = true;
|
||||
keepass.enable = true;
|
||||
#llm.enable = true;
|
||||
logseq.enable = true;
|
||||
#mail.enable = true;
|
||||
#obsidian.enable = true;
|
||||
redshift.enable = true;
|
||||
secrets.enable = true;
|
||||
security.enable = true;
|
||||
#social.enable = true;
|
||||
sway.enable = true;
|
||||
syncthing.enable = true;
|
||||
terminal.enable = true;
|
||||
#tor.enable = true;
|
||||
vim.enable = true;
|
||||
#vpnpia.enable = true;
|
||||
vscode.enable = false;
|
||||
#zenbrowser.enable = true;
|
||||
};
|
||||
|
||||
_module.args = {
|
||||
#sops-nix = inputs.sops-nix;
|
||||
zen-browser = inputs.zen-browser;
|
||||
};
|
||||
}
|
||||
21
hosts/t440p/sway-hardware.nix
Normal file
21
hosts/t440p/sway-hardware.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
wayland.windowManager.sway.config = {
|
||||
output = {
|
||||
"eDP-1" = {
|
||||
pos = "0 0";
|
||||
scale = "1";
|
||||
};
|
||||
};
|
||||
|
||||
input = {
|
||||
"type:keyboard" = {
|
||||
xkb_layout = "de";
|
||||
};
|
||||
"*" = {
|
||||
xkb_layout = "de";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user