252 current 2024-12-01 05:54:48 24.11.20241123.0c58267 6.12.1 *
This commit is contained in:
parent
0f6db23403
commit
8c5ac9ead5
7 changed files with 98 additions and 83 deletions
|
@ -62,6 +62,9 @@
|
||||||
../../modules/locale.nix
|
../../modules/locale.nix
|
||||||
../../modules/networking.nix
|
../../modules/networking.nix
|
||||||
../../modules/boot_theming.nix
|
../../modules/boot_theming.nix
|
||||||
|
../../modules/environment.nix
|
||||||
|
|
||||||
|
../../modules/users/ranomier.nix
|
||||||
|
|
||||||
../../modules/specific_hardware/scan_and_print.nix
|
../../modules/specific_hardware/scan_and_print.nix
|
||||||
../../modules/specific_hardware/fwupd.nix
|
../../modules/specific_hardware/fwupd.nix
|
||||||
|
@ -69,7 +72,7 @@
|
||||||
|
|
||||||
../../modules/sec_auth/firejail.nix
|
../../modules/sec_auth/firejail.nix
|
||||||
../../modules/sec_auth/login-manager.nix
|
../../modules/sec_auth/login-manager.nix
|
||||||
../../modules/sec_auth/users_and_permissions.nix
|
../../modules/sec_auth/apparmor.nix
|
||||||
../../modules/sec_auth/ssh.nix
|
../../modules/sec_auth/ssh.nix
|
||||||
|
|
||||||
../../modules/software/software.nix
|
../../modules/software/software.nix
|
||||||
|
@ -77,6 +80,7 @@
|
||||||
../../modules/software/game.nix
|
../../modules/software/game.nix
|
||||||
../../modules/software/audio_video.nix
|
../../modules/software/audio_video.nix
|
||||||
../../modules/software/obs-studio.nix
|
../../modules/software/obs-studio.nix
|
||||||
|
../../modules/software/shell.nix
|
||||||
|
|
||||||
../../modules/wm_and_de/hyprland.nix
|
../../modules/wm_and_de/hyprland.nix
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,4 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
||||||
users.users.ranomier = {
|
|
||||||
isNormalUser = true;
|
|
||||||
description = "Ranomier";
|
|
||||||
extraGroups = ["networkmanager" "wheel"];
|
|
||||||
#packages = with pkgs; [];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
"xdg/user-dirs.defaults".text = ''
|
"xdg/user-dirs.defaults".text = ''
|
||||||
DESKTOP=Desktop
|
DESKTOP=Desktop
|
||||||
|
@ -37,21 +29,5 @@
|
||||||
# XDG-USER-DIR package and config
|
# XDG-USER-DIR package and config
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
|
|
||||||
apparmor-pam
|
|
||||||
apparmor-utils
|
|
||||||
apparmor-parser
|
|
||||||
apparmor-profiles
|
|
||||||
roddhjav-apparmor-rules
|
|
||||||
];
|
];
|
||||||
|
|
||||||
security.apparmor.enable = true;
|
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
|
||||||
# started in user sessions.
|
|
||||||
# programs.mtr.enable = true;
|
|
||||||
# programs.gnupg.agent = {
|
|
||||||
# enable = true;
|
|
||||||
# enableSSHSupport = true;
|
|
||||||
# };
|
|
||||||
}
|
}
|
|
@ -1,64 +1,70 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
services.flatpak.enable = true;
|
services.flatpak = {
|
||||||
services.flatpak.update.auto.enable = false;
|
enable = true;
|
||||||
services.flatpak.uninstallUnmanaged = true;
|
update.auto = {
|
||||||
|
enable = false;
|
||||||
|
onCalendar = "weekly";
|
||||||
|
};
|
||||||
|
uninstallUnmanaged = true;
|
||||||
|
|
||||||
services.flatpak.remotes = lib.mkOptionDefault [
|
remotes = [
|
||||||
{
|
{
|
||||||
name = "flathub-beta";
|
name = "flathub";
|
||||||
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
|
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
||||||
}
|
args = "--prio=99";
|
||||||
{
|
}
|
||||||
name = "flathub";
|
{
|
||||||
location = "https://dl.flathub.org/repo/flathub.flatpakrepo";
|
name = "flathub-beta";
|
||||||
}
|
location = "https://flathub.org/beta-repo/flathub-beta.flatpakrepo";
|
||||||
];
|
}
|
||||||
|
];
|
||||||
|
|
||||||
services.flatpak.packages = [
|
packages = [
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "com.github.tchx84.Flatseal";
|
appId = "com.github.tchx84.Flatseal";
|
||||||
} # flatpak permisssion gui
|
} # flatpak permisssion gui
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "com.mojang.Minecraft";
|
appId = "com.mojang.Minecraft";
|
||||||
} # Lego for adults
|
} # Lego for adults
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "de.schmidhuberj.DieBahn";
|
appId = "de.schmidhuberj.DieBahn";
|
||||||
} # Public transport connection viewer
|
} # Public transport connection viewer
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "com.github.hugolabe.Wike";
|
appId = "com.github.hugolabe.Wike";
|
||||||
} # Wikpedia, but in nice
|
} # Wikpedia, but in nice
|
||||||
#{ origin = "flathub"; appId = "com.jeffser.Alpaca"; } # Local chat AI
|
#{ origin = "flathub"; appId = "com.jeffser.Alpaca"; } # Local chat AI
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "io.gpt4all.gpt4all";
|
appId = "io.gpt4all.gpt4all";
|
||||||
} # Local chat AI
|
} # Local chat AI
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "md.obsidian.Obsidian";
|
appId = "md.obsidian.Obsidian";
|
||||||
} # note taking and brain organising
|
} # note taking and brain organising
|
||||||
|
|
||||||
# messenger
|
# messenger
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "org.signal.Signal";
|
appId = "org.signal.Signal";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "org.telegram.desktop";
|
appId = "org.telegram.desktop";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "dev.vencord.Vesktop";
|
appId = "dev.vencord.Vesktop";
|
||||||
} # More usable discord for linux
|
} # More usable discord for linux
|
||||||
{
|
{
|
||||||
origin = "flathub";
|
origin = "flathub";
|
||||||
appId = "io.github.Soundux";
|
appId = "io.github.Soundux";
|
||||||
} # soundboard
|
} # soundboard
|
||||||
|
|
||||||
#"com.obsproject.Studio" #this is another way to write it
|
#"com.obsproject.Studio" #this is another way to write it
|
||||||
];
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
};
|
||||||
# Useful other development tools
|
# Useful other development tools
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
dive # look into docker image layers
|
dive # look into docker image layers
|
||||||
|
|
12
modules/sec_auth/apparmor.nix
Normal file
12
modules/sec_auth/apparmor.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
security.apparmor.enable = true;
|
||||||
|
|
||||||
|
# XDG-USER-DIR package and config
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
apparmor-pam
|
||||||
|
apparmor-utils
|
||||||
|
apparmor-parser
|
||||||
|
apparmor-profiles
|
||||||
|
roddhjav-apparmor-rules
|
||||||
|
];
|
||||||
|
}
|
4
modules/software/shell.nix
Normal file
4
modules/software/shell.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.zsh.enable = true;
|
||||||
|
users.defaultUserShell = pkgs.zsh;
|
||||||
|
}
|
11
modules/users/ranomier.nix
Normal file
11
modules/users/ranomier.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
|
users.users.ranomier = {
|
||||||
|
isNormalUser = true;
|
||||||
|
description = "Ranomier";
|
||||||
|
extraGroups = ["networkmanager" "wheel" "podman"];
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
useDefaultShell = true;
|
||||||
|
#packages = with pkgs; [];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue