misc changes

This commit is contained in:
Vinzenz Schroeter 2023-09-09 14:57:55 +02:00
parent fae9e32045
commit a24b916572
5 changed files with 118 additions and 117 deletions

View file

@ -3,8 +3,7 @@
pkgs, pkgs,
lib, lib,
... ...
}: }: let
let
cfg = config.my.gnome; cfg = config.my.gnome;
in { in {
options.my.gnome = { options.my.gnome = {
@ -42,7 +41,7 @@ in {
]; ];
home-manager.users = { home-manager.users = {
vinzenz = {pkgs, ...}: { vinzenz = lib.mkIf config.my.users.vinzenz.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
gnome.gpaste gnome.gpaste
amberol amberol

View file

@ -3,8 +3,7 @@
pkgs, pkgs,
lib, lib,
... ...
}: }: let
let
cfg = config.my.users.vinzenz; cfg = config.my.users.vinzenz;
in { in {
options.my.users.vinzenz = { options.my.users.vinzenz = {

View file

@ -3,8 +3,7 @@
pkgs, pkgs,
lib, lib,
... ...
}: }: let
let
cfg = config.my.kde; cfg = config.my.kde;
in { in {
options.my.kde = { options.my.kde = {

View file

@ -4,13 +4,14 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [./my/default.nix];
config = {
networking.hostName = "vinzenz-lpt"; networking.hostName = "vinzenz-lpt";
my.gnome.enable = true; my.gnome.enable = true;
my.users.vinzenz.enable = true; my.users.vinzenz.enable = true;
imports = [./my/default.nix];
services.flatpak.enable = true; services.flatpak.enable = true;
boot = { boot = {
@ -49,4 +50,5 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.enableRedistributableFirmware = true; hardware.enableRedistributableFirmware = true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
} }

View file

@ -4,6 +4,9 @@
pkgs, pkgs,
... ...
}: { }: {
imports = [./my/default.nix];
config = {
networking.hostName = "vinzenz-pc3"; networking.hostName = "vinzenz-pc3";
my.kde.enable = true; my.kde.enable = true;
@ -12,8 +15,6 @@
ronja.enable = true; ronja.enable = true;
}; };
imports = [./my/default.nix];
users.groups."games" = { users.groups."games" = {
members = ["vinzenz" "ronja"]; members = ["vinzenz" "ronja"];
}; };
@ -80,4 +81,5 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
} }