Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c4760f8bc | ||
|
|
029a2b6b89 |
No files matched your search
@@ -0,0 +1,94 @@
|
|||||||
|
# This is your home-manager configuration file
|
||||||
|
# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix)
|
||||||
|
{
|
||||||
|
inputs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
username = "Tester";
|
||||||
|
in
|
||||||
|
{
|
||||||
|
# You can import other home-manager modules here
|
||||||
|
imports = [
|
||||||
|
# If you want to use modules your own flake exports (from modules/home-manager):
|
||||||
|
# inputs.self.homeManagerModules.example
|
||||||
|
|
||||||
|
# Or modules exported from other flakes (such as nix-colors):
|
||||||
|
# inputs.nix-colors.homeManagerModules.default
|
||||||
|
|
||||||
|
# You can also split up your configuration and import pieces of it here:
|
||||||
|
# ./nvim.nix
|
||||||
|
|
||||||
|
../common/features/niri/niri.nix
|
||||||
|
../common/features/spicetify.nix
|
||||||
|
../common/features/yazi/yazi.nix
|
||||||
|
../common/features/nvimConf.nix
|
||||||
|
../common/features/cli.nix
|
||||||
|
../common/features/shell.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs = {
|
||||||
|
# You can add overlays here
|
||||||
|
overlays = [
|
||||||
|
# Add overlays your own flake exports (from overlays and pkgs dir):
|
||||||
|
inputs.self.overlays.additions
|
||||||
|
inputs.self.overlays.modifications
|
||||||
|
inputs.self.overlays.unstable-packages
|
||||||
|
|
||||||
|
# You can also add overlays exported from other flakes:
|
||||||
|
# neovim-nightly-overlay.overlays.default
|
||||||
|
|
||||||
|
# Or define it inline, for example:
|
||||||
|
# (final: prev: {
|
||||||
|
# hi = final.hello.overrideAttrs (oldAttrs: {
|
||||||
|
# patches = [ ./change-hello-to-hi.patch ];
|
||||||
|
# });
|
||||||
|
# })
|
||||||
|
];
|
||||||
|
# Configure your nixpkgs instance
|
||||||
|
config = {
|
||||||
|
# Disable if you don't want unfree packages
|
||||||
|
allowUnfree = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# --- xdg ---
|
||||||
|
xdg.mimeApps = {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"inode/directory" = [ "kitty-open.desktop" ];
|
||||||
|
"image/jpeg" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/png" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/gif" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/webp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/tiff" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
"image/bmp" = [ "org.gnome.gThumb.desktop" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
# --- General utils ---
|
||||||
|
libreoffice
|
||||||
|
libresprite
|
||||||
|
hunspell
|
||||||
|
hunspellDicts.en_US
|
||||||
|
obs-studio
|
||||||
|
shotcut
|
||||||
|
];
|
||||||
|
|
||||||
|
home = {
|
||||||
|
username = username;
|
||||||
|
homeDirectory = "/home/${username}";
|
||||||
|
};
|
||||||
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
# --- General utils ---
|
||||||
|
programs.quickshell.enable = true;
|
||||||
|
programs.joplin-desktop.enable = true;
|
||||||
|
|
||||||
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
|
home.stateVersion = "25.11";
|
||||||
|
}
|
||||||
@@ -29,6 +29,7 @@ in
|
|||||||
|
|
||||||
../common/users/Winter/default.nix
|
../common/users/Winter/default.nix
|
||||||
../common/users/Ekisha/default.nix
|
../common/users/Ekisha/default.nix
|
||||||
|
../common/users/Tester/default.nix
|
||||||
../common/features/DesktopNiri.nix
|
../common/features/DesktopNiri.nix
|
||||||
../common/features/DesktopKDEPlasma.nix
|
../common/features/DesktopKDEPlasma.nix
|
||||||
../common/features/Applications.nix
|
../common/features/Applications.nix
|
||||||
@@ -70,6 +71,7 @@ in
|
|||||||
Winter = import ../../home/Winter/${hostname}.nix;
|
Winter = import ../../home/Winter/${hostname}.nix;
|
||||||
minecraft = import ../../home/Winter/minecraft.nix;
|
minecraft = import ../../home/Winter/minecraft.nix;
|
||||||
Ekisha = import ../../home/Ekisha/${hostname}.nix;
|
Ekisha = import ../../home/Ekisha/${hostname}.nix;
|
||||||
|
Tester = import ../../home/Tester/${hostname}.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
username = "Tester";
|
||||||
|
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
|
||||||
|
in {
|
||||||
|
users.users.${username} = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ifTheyExist [
|
||||||
|
];
|
||||||
|
|
||||||
|
# TODO: use as needed
|
||||||
|
#openssh.authorizedKeys.keys = lib.splitString "\n" (builtins.readFile ../../../../home/gabriel/ssh.pub);
|
||||||
|
#hashedPasswordFile = config.sops.secrets.gabriel-password.path;
|
||||||
|
#packages = [pkgs.home-manager];
|
||||||
|
};
|
||||||
|
|
||||||
|
# unused for now, may add sops later on
|
||||||
|
#sops.secrets = {
|
||||||
|
# gabriel-password = {
|
||||||
|
# sopsFile = ../../secrets.yaml;
|
||||||
|
# neededForUsers = true;
|
||||||
|
# };
|
||||||
|
#};
|
||||||
|
|
||||||
|
# TODO: ensure correct paths
|
||||||
|
home-manager.users.${username} = import ../../../../home/${username}/${config.networking.hostName}.nix;
|
||||||
|
|
||||||
|
security.pam.services = {
|
||||||
|
swaylock = {};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in new issue
Block a user