From ef1d7d4100d4fc62cfe78787795f9738a05b6de1 Mon Sep 17 00:00:00 2001
From: DerGrumpf
Date: Mon, 24 Mar 2025 10:34:45 +0100
Subject: [PATCH] init
---
.gitignore | 6 +++++
flake.nix | 0
home/core.nix | 21 +++++++++++++++
hosts/m920q/default.nix | 0
hosts/m920q/hardware-configuration.nix | 37 ++++++++++++++++++++++++++
modules/system.nix | 0
users/phil/home.nix | 0
users/phil/nixos.nix | 0
8 files changed, 64 insertions(+)
create mode 100644 .gitignore
create mode 100644 flake.nix
create mode 100644 home/core.nix
create mode 100644 hosts/m920q/default.nix
create mode 100644 hosts/m920q/hardware-configuration.nix
create mode 100644 modules/system.nix
create mode 100644 users/phil/home.nix
create mode 100644 users/phil/nixos.nix
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4f61d20
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+result
+result/
+.direnv/
+.DS_Store
+.pre-commit-config.yaml
+logs/
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..e69de29
diff --git a/home/core.nix b/home/core.nix
new file mode 100644
index 0000000..54b2c79
--- /dev/null
+++ b/home/core.nix
@@ -0,0 +1,21 @@
+{username, ...}: {
+ # Home Manager needs a bit of information about you and the
+ # paths it should manage.
+ home = {
+ inherit username;
+ homeDirectory = "/home/${username}";
+
+ # This value determines the Home Manager release that your
+ # configuration is compatible with. This helps avoid breakage
+ # when a new Home Manager release introduces backwards
+ # incompatible changes.
+ #
+ # You can update Home Manager without changing this value. See
+ # the Home Manager release notes for a list of state version
+ # changes in each release.
+ stateVersion = "24.05";
+ };
+
+ # Let Home Manager install and manage itself.
+ programs.home-manager.enable = true;
+}
diff --git a/hosts/m920q/default.nix b/hosts/m920q/default.nix
new file mode 100644
index 0000000..e69de29
diff --git a/hosts/m920q/hardware-configuration.nix b/hosts/m920q/hardware-configuration.nix
new file mode 100644
index 0000000..2222882
--- /dev/null
+++ b/hosts/m920q/hardware-configuration.nix
@@ -0,0 +1,37 @@
+# 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 + "/profiles/qemu-guest.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [ "ata_piix" "floppy" "sd_mod" "sr_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-label/NIXROOT";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-label/NIXBOOT";
+ fsType = "vfat";
+ options = [ "fmask=0022" "dmask=0022" ];
+ };
+
+ swapDevices = [ ];
+
+ # 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..useDHCP`.
+ networking.useDHCP = lib.mkDefault true;
+ # networking.interfaces.ens3.useDHCP = lib.mkDefault true;
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}
diff --git a/modules/system.nix b/modules/system.nix
new file mode 100644
index 0000000..e69de29
diff --git a/users/phil/home.nix b/users/phil/home.nix
new file mode 100644
index 0000000..e69de29
diff --git a/users/phil/nixos.nix b/users/phil/nixos.nix
new file mode 100644
index 0000000..e69de29