mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
organized some files and modularized
This commit is contained in:
parent
ad9c7413a3
commit
1c9935f11c
4 changed files with 43 additions and 52 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
inputs,
|
|
||||||
outputs,
|
outputs,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
|
|
@ -7,6 +6,11 @@
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
../../modules/nixos/boot.nix
|
||||||
|
|
||||||
|
../../modules/nixos/gnome.nix
|
||||||
|
../../modules/nixos/android-studio.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
@ -23,25 +27,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Bootloader
|
|
||||||
boot = {
|
|
||||||
loader = {
|
|
||||||
timeout = 0;
|
|
||||||
systemd-boot = {
|
|
||||||
enable = true;
|
|
||||||
configurationLimit = 5;
|
|
||||||
};
|
|
||||||
|
|
||||||
efi.canTouchEfiVariables = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
plymouth = {
|
|
||||||
enable = true;
|
|
||||||
themePackages = [pkgs.catppuccin-plymouth];
|
|
||||||
theme = "catppuccin-macchiato";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# Nix options
|
# Nix options
|
||||||
nix.optimise.automatic = true;
|
nix.optimise.automatic = true;
|
||||||
nix.settings.experimental-features = ["nix-command" "flakes"];
|
nix.settings.experimental-features = ["nix-command" "flakes"];
|
||||||
|
|
@ -75,18 +60,6 @@
|
||||||
LC_ALL = "en_CA.UTF-8";
|
LC_ALL = "en_CA.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
# services.desktopManager.cosmic.enable = true;
|
|
||||||
# services.displayManager.sddm.enable = true;
|
|
||||||
# services.desktopManager.plasma6.enable = true;
|
|
||||||
|
|
||||||
services.xserver.displayManager.gdm.enable = true;
|
|
||||||
services.xserver.desktopManager.gnome.enable = true;
|
|
||||||
|
|
||||||
# services.xserver = {
|
|
||||||
# desktopManager.gnome.enable = true;
|
|
||||||
# displayManager.gdm.enable = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
environment.plasma6.excludePackages = with pkgs.kdePackages; [
|
||||||
# plasma-browser-integration
|
# plasma-browser-integration
|
||||||
konsole
|
konsole
|
||||||
|
|
@ -115,16 +88,8 @@
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
alsa.support32Bit = true;
|
alsa.support32Bit = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
# If you want to use JACK applications, uncomment this
|
|
||||||
#jack.enable = true;
|
|
||||||
|
|
||||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
||||||
# no need to redefine it in your config for now)
|
|
||||||
#media-session.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.gnome.gnome-keyring.enable = true;
|
|
||||||
|
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns4 = true;
|
nssmdns4 = true;
|
||||||
|
|
@ -150,7 +115,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
bitwarden-desktop
|
bitwarden-desktop
|
||||||
sqlite
|
sqlite
|
||||||
vscode.fhs
|
vscode.fhs
|
||||||
|
|
@ -166,27 +130,18 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.packages = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
# nerdfonts
|
nerd-fonts.jetbrains-mono
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.nix-ld.enable = true;
|
programs.nix-ld.enable = true;
|
||||||
|
|
||||||
# Install firefox.
|
# Install firefox.
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
|
||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
|
|
||||||
# Sway
|
|
||||||
# programs.sway = {
|
|
||||||
# enable = true;
|
|
||||||
# # package = null;
|
|
||||||
# wrapperFeatures.gtk = true;
|
|
||||||
# };
|
|
||||||
|
|
||||||
security.pam.services.swaylock = {};
|
|
||||||
security.pam.services.swaylock.fprintAuth = true;
|
|
||||||
|
|
||||||
programs.appimage = {
|
programs.appimage = {
|
||||||
enable = true;
|
enable = true;
|
||||||
binfmt = true;
|
binfmt = true;
|
||||||
|
|
|
||||||
11
dot_config/flake/modules/nixos/android-studio.nix
Normal file
11
dot_config/flake/modules/nixos/android-studio.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
android-studio
|
||||||
|
android-tools
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.adb.enable = true;
|
||||||
|
services.udev.packages = [
|
||||||
|
pkgs.android-udev-rules
|
||||||
|
];
|
||||||
|
}
|
||||||
20
dot_config/flake/modules/nixos/boot.nix
Normal file
20
dot_config/flake/modules/nixos/boot.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
# Bootloader
|
||||||
|
boot = {
|
||||||
|
loader = {
|
||||||
|
timeout = 0;
|
||||||
|
systemd-boot = {
|
||||||
|
enable = true;
|
||||||
|
configurationLimit = 5;
|
||||||
|
};
|
||||||
|
|
||||||
|
efi.canTouchEfiVariables = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
plymouth = {
|
||||||
|
enable = true;
|
||||||
|
themePackages = [pkgs.catppuccin-plymouth];
|
||||||
|
theme = "catppuccin-macchiato";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
5
dot_config/flake/modules/nixos/gnome.nix
Normal file
5
dot_config/flake/modules/nixos/gnome.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{...}: {
|
||||||
|
services.xserver.displayManager.gdm.enable = true;
|
||||||
|
services.xserver.desktopManager.gnome.enable = true;
|
||||||
|
services.gnome.gnome-keyring.enable = true;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue