This commit is contained in:
Till 2023-12-18 14:44:43 +01:00
parent e7791dfd15
commit 7de0c6a389
6 changed files with 11 additions and 131 deletions

View file

@ -1,58 +0,0 @@
{ config, pkgs, inputs, lib, ... }:
{
home.username = "alt";
home.homeDirectory = "/home/alt";
home.stateVersion = "22.11";
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = (_: true);
};
};
programs.home-manager.enable = true;
xdg.userDirs = {
enable = true;
createDirectories = true;
download = "${config.home.homeDirectory}/tmp";
music = "${config.home.homeDirectory}/media/music";
pictures = "${config.home.homeDirectory}/media/img";
videos = "${config.home.homeDirectory}/media/vid";
documents = "${config.home.homeDirectory}/misc";
templates = "${config.xdg.dataHome}/templates";
};
home.file.".npmrc".text = ''
prefix = ${config.xdg.dataHome}/npm/packages
'';
home.packages = with pkgs; [
# commandline
fzf
nnn
jq
progress
silver-searcher
tmux
wl-clipboard
firefox
qbittorrent
vlc
];
imports = [
./desktop
];
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
}

View file

@ -1,18 +0,0 @@
{ config, pkgs, ... }:
{
home.pointerCursor = {
name = "Adwaita";
package = pkgs.gnome.adwaita-icon-theme;
size = 32;
};
dconf.settings = {
"org/gnome-shell" = {
enabled-extensions = [
"run-or-raise@edvard.cz"
];
};
};
xdg.configFile."run-or-raise/shortcuts.conf".source = ./run-or-raise.conf;
}

View file

@ -1,42 +0,0 @@
# Here you list all the shortcuts.
#
# The shortcuts may be defined in two ways:
#
# 1. Run-or-raise form: shortcut,launch-command,[wm_class],[title]
# * wm_class and title are optional and case sensitive
# * if none is set, lowercased launch-command is compared with lowercased windows wm_classes and titles
#
# 2. Run only form: shortcut,calculate
#
# =================
# Run or raise form
# =================
#
# This line cycles any open gnome-terminal (matched by wm_class = Gnome-terminal on Ubuntu 17.10) OR if not found, launches new one.
# If you're using Arch, you may want to match by wm_class = gnome-terminal-server , just check yourself by Alt+F2/lg/Windows
<Super>t,gnome-terminal,gnome-terminal-server,
<Super>n,nautilus,,
<Super>f,firefox,,
<Super>return,foot,,
<Super>x,keepassxc,,,
<Super>q,qutebrowser,,
# You may use regular expression in title or wm_class.
# Just put the regular expression between slashes.
# E.g. to jump to pidgin conversation window you may use this line
# (that means any windows of wm_class Pidgin, not containing the title Buddy List)"
# <Super>KP_1,pidgin,Pidgin,/^((?!Buddy List).)*$/
# Have the mail always at numpad-click.
# <Super>KP_2,chromium-browser --app=https://mail.google.com/mail/u/0/#inbox
# =============
# Run only form
# =============
#
# This line will launch notify-send command.
# <Super>h,notify-send Hello world
# Blank lines are allowed. Line starting with "#" means a comment.
# Now delete these shortcuts and put here yours.
# How to know wm_class? Alt+f2, lg, "windows" tab (at least on Ubuntu 17.10)

18
flake.lock generated
View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1702124454,
"narHash": "sha256-+lwBEFPxQ8VM3ht6qEcR92A/M9GF6mDtAwKgPI3YgXQ=",
"lastModified": 1702814335,
"narHash": "sha256-Qck7BAMi3eydzT1WFOzp/SgECetyPpOn1dLgmxH2ebQ=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "fa91c109b0dd12e680dd29010e262884f7b26186",
"rev": "e4dba0bd01956170667458be7b45f68170a63651",
"type": "github"
},
"original": {
@ -22,11 +22,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1701952659,
"narHash": "sha256-TJv2srXt6fYPUjxgLAL0cy4nuf1OZD4KuA1TrCiQqg0=",
"lastModified": 1702780907,
"narHash": "sha256-blbrBBXjjZt6OKTcYX1jpe9SRof2P9ZYWPzq22tzXAA=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b4372c4924d9182034066c823df76d6eaf1f4ec4",
"rev": "1e2e384c5b7c50dbf8e9c441a9e58d85f408b01f",
"type": "github"
},
"original": {
@ -38,11 +38,11 @@
},
"nur": {
"locked": {
"lastModified": 1702154858,
"narHash": "sha256-jjLWEdor/ynwQfmKC6f7YW1rPcK6gHWoP4pxoRv3VSo=",
"lastModified": 1702902799,
"narHash": "sha256-KNTIeQ6gDVoX3QSW0tWgCVjvmJ3JO+FT8XwRxL9dZN0=",
"owner": "nix-community",
"repo": "nur",
"rev": "25f4052a47d6ef4ed1fccdd55bb94e57ea664432",
"rev": "4561fa27240f2b30aeb1bfdc27162a32b77b0b8d",
"type": "github"
},
"original": {

View file

@ -53,7 +53,7 @@
pkgs = nixpkgs.legacyPackages.x86_64-linux.extend inputs.nur.overlay;
extraSpecialArgs = { inherit inputs; };
modules = [
./alt
./home/alt.nix
];
};
};

View file

@ -2,14 +2,12 @@
{
users.users.alt = {
isSystemUser = true;
isNormalUser = true;
description = "Alt";
extraGroups = [
"networkmanager"
];
shell = pkgs.fish;
group = "alt";
home = "/home/alt";
};
users.groups.alt = {};
}