no clue really
This commit is contained in:
19
flake.nix
19
flake.nix
@@ -14,22 +14,23 @@
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... } @ inputs:
|
||||
outputs =
|
||||
{ self, nixpkgs, ... }@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
username = "poslop";
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
nixos-vm2 = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./hosts/nixos-vm2/configuration.nix ];
|
||||
specialArgs = {
|
||||
host = "nixos-vm2";
|
||||
inherit self inputs username;
|
||||
nixosConfigurations = {
|
||||
nixos-vm2 = nixpkgs.lib.nixosSystem {
|
||||
inherit system;
|
||||
modules = [ ./hosts/nixos-vm2/configuration.nix ];
|
||||
specialArgs = {
|
||||
host = "nixos-vm2";
|
||||
inherit self inputs username;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
nix.settings = {
|
||||
experimental-features = "nix-command flakes";
|
||||
};
|
||||
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
./modules
|
||||
];
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./modules
|
||||
];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland.enable = true;
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
@@ -27,14 +29,6 @@
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
users.users.poslop = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ];
|
||||
packages = with pkgs; [
|
||||
tree
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty
|
||||
vim
|
||||
@@ -46,4 +40,3 @@
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
|
||||
@@ -1,26 +1,32 @@
|
||||
# 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, ... }:
|
||||
{
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ahci"
|
||||
"xhci_pci"
|
||||
"virtio_pci"
|
||||
"sr_mod"
|
||||
"virtio_blk"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/39b3801f-ffcd-421f-966f-46625fb8d4ca";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/39b3801f-ffcd-421f-966f-46625fb8d4ca";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/7043d338-93f0-40a7-9033-6616685e32f3"; }
|
||||
];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/7043d338-93f0-40a7-9033-6616685e32f3"; } ];
|
||||
|
||||
networking.useDHCP = lib.mkDefault true;
|
||||
|
||||
|
||||
@@ -1,22 +1,20 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
{
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
];
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland.enable = true;
|
||||
|
||||
boot.loader.grub.enable = true;
|
||||
boot.loader.grub.device = "/dev/vda";
|
||||
|
||||
|
||||
services.spice-vdagentd.enable = true;
|
||||
services.qemuGuest.enable = true;
|
||||
|
||||
|
||||
system.stateVersion = "24.11";
|
||||
}
|
||||
|
||||
|
||||
@@ -1,26 +1,32 @@
|
||||
# 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, ... }:
|
||||
{
|
||||
lib,
|
||||
modulesPath,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ahci"
|
||||
"xhci_pci"
|
||||
"virtio_pci"
|
||||
"sr_mod"
|
||||
"virtio_blk"
|
||||
];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/b8c66f3c-759d-4d4f-9d1a-3f2e04d91e23";
|
||||
fsType = "ext4";
|
||||
};
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/b8c66f3c-759d-4d4f-9d1a-3f2e04d91e23";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices =
|
||||
[ { device = "/dev/disk/by-uuid/b7d73851-7f85-44fa-b62a-e35deb0ea98a"; }
|
||||
];
|
||||
swapDevices = [ { device = "/dev/disk/by-uuid/b7d73851-7f85-44fa-b62a-e35deb0ea98a"; } ];
|
||||
|
||||
# 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
|
||||
|
||||
@@ -11,4 +11,3 @@
|
||||
./ssh.nix
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
{
|
||||
inputs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
{ inputs, username, lib, ... }:
|
||||
|
||||
{
|
||||
imports = [inputs.hjem.nixosModules.default];
|
||||
imports = [
|
||||
inputs.hjem.nixosModules.default
|
||||
(lib.modules.mkAliasOptionModule ["hj"] ["hjem" "users" username])
|
||||
];
|
||||
|
||||
config.hjem = {
|
||||
extraModules = [inputs.hjem-rum.hjemModules.default];
|
||||
extraModules = [ inputs.hjem-rum.hjemModules.default ];
|
||||
|
||||
users.${username} = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
wl-clipboard
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, lib, ... }:
|
||||
_:
|
||||
{
|
||||
programs.zsh.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
_:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
{
|
||||
time.timeZone = "America/Chicago";
|
||||
}
|
||||
{ time.timeZone = "America/Chicago"; }
|
||||
|
||||
@@ -1,17 +1,10 @@
|
||||
{
|
||||
username,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{ username, pkgs, ... }:
|
||||
|
||||
{
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
description = "${username}";
|
||||
#group = "${username}";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
];
|
||||
extraGroups = [ "wheel" ];
|
||||
shell = pkgs.zsh;
|
||||
};
|
||||
nix.settings.allowed-users = [ "@wheel" ];
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{ config, pkgs, username, ... }:
|
||||
{
|
||||
config.hjem.users.username.rum.programs.git = {
|
||||
config,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
{
|
||||
hj.rum.programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
{
|
||||
programs.hyprland.enable = true;
|
||||
}
|
||||
{ programs.hyprland.enable = true; }
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
{
|
||||
config.me.rum.programs.hyprland.settings.monitor = [
|
||||
", 1920x1080@60, auto, 1"
|
||||
];
|
||||
}
|
||||
{ config.me.rum.programs.hyprland.settings.monitor = [ ", 1920x1080@60, auto, 1" ]; }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, inputs, ... }:
|
||||
_:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{ config, pkgs, username, ... }:
|
||||
{
|
||||
pkgs,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
hjem.users.username.packages = with pkgs; [
|
||||
hjem.users.${username}.packages = with pkgs; [
|
||||
statix
|
||||
git
|
||||
zsh
|
||||
neofetch
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
_:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
{
|
||||
imports = [
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
{ imports = [ ./zsh.nix ]; }
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
programs.zsh.plugins = [
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{ username, ... }:
|
||||
{
|
||||
config.hjem.users.username.rum.programs.zsh = {
|
||||
config.hjem.users.${username}.rum.programs.zsh = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user