mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Now using currentSystemUser for username across machines
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, currentSystemUser, ... }:
|
||||
{
|
||||
imports = [
|
||||
./fonts.nix
|
||||
];
|
||||
|
||||
nix.gc = {
|
||||
automatic = true;
|
||||
dates = "weekly";
|
||||
options = "--delete-older-than 1w";
|
||||
};
|
||||
|
||||
# Remove old gtkrc file, otherwise it will not work
|
||||
system.userActivationScripts = {
|
||||
removeConflictingFiles = {
|
||||
text = ''
|
||||
rm -f /home/r3ddy/.gtkrc-2.0.backup
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nix.optimise.automatic = true;
|
||||
|
||||
time.timeZone = "Europe/Rome";
|
||||
|
||||
@@ -40,16 +36,12 @@
|
||||
};
|
||||
|
||||
programs.fish.enable = true; # This must be true before initializing my user
|
||||
users.users.r3ddy = {
|
||||
users.users.${currentSystemUser} = {
|
||||
isNormalUser = true;
|
||||
description = "Patrick Canal";
|
||||
extraGroups = [ "networkmanager" "wheel" "docker" ];
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
];
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
}
|
||||
|
||||
6
modules/nix-config/fonts.nix
Normal file
6
modules/nix-config/fonts.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
fonts.packages = with pkgs; [
|
||||
nerd-fonts.jetbrains-mono
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user