mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 15:36:35 +01:00
Add Oni System to configuration
This commit is contained in:
parent
ee94a8032b
commit
98daf2ed7c
4 changed files with 104 additions and 3 deletions
10
common.nix
10
common.nix
|
@ -111,23 +111,31 @@
|
|||
extraGroups = [ "wheel" "networkmanger" "scanner" "lp"];
|
||||
packages = with pkgs; [
|
||||
kate
|
||||
tela-icon-theme
|
||||
carla
|
||||
xdg-ninja
|
||||
prismlauncher
|
||||
nixpkgs-review
|
||||
nurl
|
||||
nix-init
|
||||
discord
|
||||
ark
|
||||
gitkraken
|
||||
prismlauncher
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
partition-manager
|
||||
gparted
|
||||
tela-icon-theme
|
||||
dracula-theme
|
||||
];
|
||||
|
||||
programs = {
|
||||
dconf.enable = true;
|
||||
droidcam.enable = true;
|
||||
sysdig.enable = true;
|
||||
xwayland = true;
|
||||
};
|
||||
|
||||
security.rtkit.enable = true;
|
||||
|
|
28
flake.nix
28
flake.nix
|
@ -28,9 +28,10 @@
|
|||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
outputs = { self, nixpkgs, nixos-hardware, prismlauncher, home-manager, nur, ... }: {
|
||||
outputs = { self, nixpkgs, nixos-hardware, prismlauncher, home-manager, nur, ... }@attrs: {
|
||||
nixosConfigurations.yokai = nixpkgs.lib.nixosSystem {
|
||||
system = "aarch64-linux";
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
./yokai.nix
|
||||
./common.nix
|
||||
|
@ -54,5 +55,30 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = attrs;
|
||||
modules = [
|
||||
./oni.nix
|
||||
./common.nix
|
||||
home-manager.nixosModules.home-manager
|
||||
nur.nixosModules.nur
|
||||
{
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
users.jopejoe1 = import ./home/jopejoe1.nix;
|
||||
users.root = import ./home/root.nix;
|
||||
};
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = [
|
||||
prismlauncher.overlay
|
||||
nur.overlay
|
||||
];
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -110,7 +110,15 @@
|
|||
rb = "sudo git -C /etc/nixos pull && sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch && sudo git -C /etc/nixos add . && sudo git -C /etc/nixos commit -m 'Updated flake.lock' && sudo git -C /etc/nixos push";
|
||||
};
|
||||
};
|
||||
zsh.shellAliases = config.programs.bash.shellAliases;
|
||||
zsh = {
|
||||
enable = true;
|
||||
shellAliases = config.programs.bash.shellAliases;
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
enableSyntaxHighlighting = true;
|
||||
enableVteIntegration = true;
|
||||
dotDir = ".config/zsh";
|
||||
};
|
||||
fish.shellAbbrs = config.programs.bash.shellAliases;
|
||||
thunderbird = {
|
||||
enable = false;
|
||||
|
|
59
oni.nix
Normal file
59
oni.nix
Normal file
|
@ -0,0 +1,59 @@
|
|||
{ config, pkgs, lib, modulesPath, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot/efi";
|
||||
};
|
||||
};
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "usb_storage" "sd_mod" "sr_mod" ];
|
||||
kernelModules = [ ];
|
||||
};
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
kernelModules = [ "kvm-amd" ];
|
||||
extraModulePackages = [ ];
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/c013c58e-540f-4547-b218-f7d34b07f7df";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/boot/efi" = {
|
||||
device = "/dev/disk/by-uuid/F1C3-4668";
|
||||
fsType = "vfat";
|
||||
};
|
||||
};
|
||||
|
||||
swapDevices = [ {
|
||||
device = "/dev/disk/by-uuid/8a721407-d8bc-4d2d-970a-7ff462107dc3";
|
||||
} ];
|
||||
|
||||
networking.hostName = "oni";
|
||||
|
||||
time.timeZone = "Europe/Berlin";
|
||||
|
||||
services.xserver = {
|
||||
layout = "de";
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
console.keyMap = "de";
|
||||
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
interfaces = {
|
||||
enp2s0.useDHCP = lib.mkDefault true;
|
||||
wlp3s0.useDHCP = lib.mkDefault true;
|
||||
};
|
||||
};
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
}
|
Loading…
Reference in a new issue