hoe manager
This commit is contained in:
parent
bfbc64b611
commit
f266f8a8ee
14 changed files with 154 additions and 29 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
hardware-configuration.nix
|
||||||
|
|
@ -16,7 +16,6 @@
|
||||||
];
|
];
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
|
||||||
./imports.nix
|
./imports.nix
|
||||||
];
|
];
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
|
|
|
||||||
14
flake.nix
14
flake.nix
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
description = "MartyTF's NixOS flake";
|
description = "MartyTF's NixOS Configuration";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
{
|
inputs@{
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
|
|
@ -24,24 +24,24 @@
|
||||||
modules = [
|
modules = [
|
||||||
./marty-pc.nix
|
./marty-pc.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./user/marty.nix
|
home-manager.nixosModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
marty-server = nixpkgs.lib.nixosSystem {
|
marty-server = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./marty-server.nix
|
./marty-server.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./user/marty.nix
|
home-manager.nixosModules.default
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
marty-latitude = nixpkgs.lib.nixosSystem {
|
marty-latitude = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./marty-latitude.nix
|
./marty-latitude.nix
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
./user/marty.nix
|
home-manager.nixosModules.default
|
||||||
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
inputs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
|
home-manager,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -11,30 +12,47 @@
|
||||||
hostName = "marty-latitude";
|
hostName = "marty-latitude";
|
||||||
};
|
};
|
||||||
|
|
||||||
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
|
home-manager = {
|
||||||
imports =
|
useGlobalPkgs = true;
|
||||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
useUserPackages = true;
|
||||||
];
|
# users = {
|
||||||
|
# marty = ./nixos/modules/home.nix;
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
|
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
"rtsx_pci_sdmmc"
|
||||||
|
];
|
||||||
boot.initrd.kernelModules = [ ];
|
boot.initrd.kernelModules = [ ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/757b8bfc-0b5d-4ec1-9ab7-7876848ae411";
|
device = "/dev/disk/by-uuid/757b8bfc-0b5d-4ec1-9ab7-7876848ae411";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/C8A8-A568";
|
device = "/dev/disk/by-uuid/C8A8-A568";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [
|
||||||
};
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
swapDevices =
|
|
||||||
[ { device = "/dev/disk/by-uuid/a1838708-fb00-4ecb-8010-432d06182591"; }
|
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{ device = "/dev/disk/by-uuid/a1838708-fb00-4ecb-8010-432d06182591"; }
|
||||||
|
];
|
||||||
|
|
||||||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
# 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
|
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||||||
|
|
|
||||||
40
marty-pc.nix
40
marty-pc.nix
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -17,6 +18,45 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users = {
|
||||||
|
marty = ./nixos/modules/home.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"nvme"
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-amd" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/a26cdc8b-abc9-47cf-ad33-c81e56e56d22";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/C9B2-7254";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
|
};
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/mnt/SSD" = {
|
"/mnt/SSD" = {
|
||||||
device = "/dev/disk/by-uuid/af5282f0-0e02-4532-902f-97509af70d11";
|
device = "/dev/disk/by-uuid/af5282f0-0e02-4532-902f-97509af70d11";
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
modulesPath,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
@ -18,6 +19,45 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager = {
|
||||||
|
useGlobalPkgs = true;
|
||||||
|
useUserPackages = true;
|
||||||
|
users = {
|
||||||
|
marty = ./nixos/modules/home.nix;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# PREVIOUSLY HARDWARE-CONFIGURATION.NIX
|
||||||
|
imports = [
|
||||||
|
(modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [
|
||||||
|
"xhci_pci"
|
||||||
|
"ahci"
|
||||||
|
"nvme"
|
||||||
|
"usbhid"
|
||||||
|
"usb_storage"
|
||||||
|
"sd_mod"
|
||||||
|
];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" = {
|
||||||
|
device = "/dev/disk/by-uuid/a804bdf0-194c-4fe4-a451-64620d3d293d";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
fileSystems."/boot" = {
|
||||||
|
device = "/dev/disk/by-uuid/44A5-B01F";
|
||||||
|
fsType = "vfat";
|
||||||
|
options = [
|
||||||
|
"fmask=0077"
|
||||||
|
"dmask=0077"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
"/mnt/Data" = {
|
"/mnt/Data" = {
|
||||||
device = "/dev/disk/by-uuid/20eaea9c-6924-40c6-a784-cd5018d8fabb";
|
device = "/dev/disk/by-uuid/20eaea9c-6924-40c6-a784-cd5018d8fabb";
|
||||||
|
|
|
||||||
12
modules/home.nix
Normal file
12
modules/home.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
home.username = "marty";
|
||||||
|
import = [
|
||||||
|
./development/import_development.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland.nix
|
./window_manager.nix
|
||||||
./waybar.nix
|
./launcher.nix
|
||||||
|
./bar.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
9
modules/window_manager/launcher.nix
Normal file
9
modules/window_manager/launcher.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [
|
||||||
|
rofi
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
environment = {
|
environment = {
|
||||||
systemPackages = with pkgs; [
|
systemPackages = with pkgs; [
|
||||||
kitty
|
kitty
|
||||||
rofi
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
users.users.marty = {
|
users.users.marty = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue