📦 Moved more configs to common files, and refactored code with common
This commit is contained in:
24
common.nix
24
common.nix
@ -1,16 +1,26 @@
|
||||
rec {
|
||||
default = {
|
||||
browser = "io.github.zen_browser.zen.desktop";
|
||||
calculator = "gnome-calculator";
|
||||
fileManager = "nautilus";
|
||||
imageViewer = "org.gnome.Loupe.desktop";
|
||||
lockScreen = "hyprlock";
|
||||
terminal = "kitty";
|
||||
};
|
||||
|
||||
dir = {
|
||||
home = "/home/${username}";
|
||||
pictures = "${dir.home}/Pictures";
|
||||
};
|
||||
|
||||
hostname = "nixos";
|
||||
|
||||
keymaps = {
|
||||
layout = "gb,no";
|
||||
options = "grp:alt_shift_toggle"; # Toggle using ALT + SHIFT
|
||||
};
|
||||
|
||||
username = "martin";
|
||||
hostname = "nixos";
|
||||
|
||||
dir = {
|
||||
home = "/home/${username}";
|
||||
pictures = "${dir.home}/Pictures";
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
@ -19,5 +29,5 @@ rec {
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.version = "24.11";
|
||||
terminal = "kitty";
|
||||
terminal = default.terminal; # TODO remove
|
||||
}
|
||||
|
Reference in New Issue
Block a user