initial comit

This commit is contained in:
2025-07-10 14:28:15 +02:00
commit 2bb359c70c
19 changed files with 917 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
{ config, pkgs, lib, home-manager, ... }:
{
imports = [
../../modules/sway.nix
../../modules/dev.nix
./sway.nix
./hardware-configuration.nix
# home manager integration
home-manager.nixosModules.home-manager
./home.nix
];
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
# bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "dev-vm";
# time and localization
time.timeZone = "Europe/Berlin";
# vm guest config
virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.guest.clipboard = true;
# users
users.users.alex = {
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.fish;
};
}
+38
View File
@@ -0,0 +1,38 @@
# 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 = [ ];
boot.initrd.availableKernelModules = [ "ata_piix" "ohci_pci" "ehci_pci" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/3cbff268-faac-43e2-a5d4-277a44072035";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5308-547F";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/d1ed07ab-a38d-481d-9b9b-59a031898b46"; }
];
# 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.enp0s3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
virtualisation.virtualbox.guest.enable = true;
}
+15
View File
@@ -0,0 +1,15 @@
{ config, pkgs, ... }:
{
home-manager.users.alex= {
imports = [
../../home-manager/common.nix
../../home-manager/sway.nix
../../home-manager/rofi.nix
../../home-manager/waybar.nix
];
home.packages = with pkgs; [
neovim
];
};
}
+7
View File
@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
wayland-utils
];
}