1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-04-03 18:14:15 +00:00
This commit is contained in:
Rae 5e 2025-03-03 19:48:52 -05:00
parent f80f844343
commit 65dc01e1d1
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
4 changed files with 218 additions and 213 deletions

23
nixos/hosts/base.nix Normal file
View file

@ -0,0 +1,23 @@
{ pkgs, ... }: {
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "rae" ];
};
nixpkgs = {
config.allowUnfree = true;
overlays = import ../overlays.nix inputs;
};
users.users.rae = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" "jackaudio" ];
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
shell = pkgs.fish;
};
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "gr928-8x16-thin"; # https://adeverteuil.github.io/linux-console-fonts-screenshots/
keyMap = "us";
};
}

View file

@ -1,7 +1,7 @@
{ config, pkgs, inputs, ... }:
{
{ config, pkgs, inputs, ... }: {
imports = [
inputs.nix-flatpak.nixosModules.nix-flatpak
../base.nix
../packages.nix
];
@ -15,24 +15,8 @@
security.polkit.enable = true;
nix.settings = {
experimental-features = [ "nix-command" "flakes" ];
trusted-users = [ "root" "rae" ];
};
nixpkgs = {
config.allowUnfree = true;
overlays = import ../overlays.nix inputs;
};
networking.networkmanager.enable = true;
users.users.rae = {
isNormalUser = true;
extraGroups = [ "wheel" "docker" "jackaudio" ];
hashedPassword = "$y$j9T$YPq.Kl8rss1JmJ5Vg6cHE/$2kdfzCkkhaO.I4u714EQnS/ZFert5byisiRVxtC.9G2";
shell = pkgs.fish;
};
programs = {
dconf.enable = true;
firefox.enable = true;
@ -160,11 +144,5 @@
];
};
i18n.defaultLocale = "en_US.UTF-8";
console = {
font = "gr928-8x16-thin"; # https://adeverteuil.github.io/linux-console-fonts-screenshots/
keyMap = "us";
};
virtualisation.docker.enable = true;
}

View file

@ -5,7 +5,9 @@
../desktop.nix
];
boot.loader = {
boot = {
binfmt.emulatedSystems = [ "aarch64-linux" ];
loader = {
efi = {
canTouchEfiVariables = false;
efiSysMountPoint = "/efi";
@ -17,6 +19,7 @@
devices = [ "nodev" ];
};
};
};
# Music pendrive
fileSystems."/mnt/world" = {

View file

@ -3,6 +3,7 @@
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
inputs.raspberry-pi-nix.nixosModules.sd-image
./hardware-configuration.nix
../base.nix
];
networking.hostName = "near";