mirror of
https://github.com/youwen5/nixos.git
synced 2024-11-28 11:43:51 -08:00
Compare commits
No commits in common. "ee303edef36a373edd6c048f7df8f29b183e5d93" and "3e5297d04a1c23846ab0ac7c71d96ba8a10b10a8" have entirely different histories.
ee303edef3
...
3e5297d04a
19 changed files with 105 additions and 315 deletions
28
flake.nix
28
flake.nix
|
@ -43,19 +43,22 @@
|
||||||
}@inputs: rec {
|
}@inputs: rec {
|
||||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt;
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
demeter = nixpkgs.lib.nixosSystem {
|
nixos = nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = { inherit inputs; };
|
specialArgs = { inherit inputs; };
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
./hosts/nixos
|
./hosts/nixos
|
||||||
./modules/nixos/gaming
|
./modules/nixos/gaming.nix
|
||||||
./modules/nixos/audio
|
./modules/nixos/audio.nix
|
||||||
./modules/nixos/networking
|
./modules/nixos/networking.nix
|
||||||
./modules/common/fonts
|
./modules/common/fonts.nix
|
||||||
|
|
||||||
catppuccin.nixosModules.catppuccin
|
catppuccin.nixosModules.catppuccin
|
||||||
|
|
||||||
lix-module.nixosModules.default
|
lix-module.nixosModules.default
|
||||||
|
|
||||||
lanzaboote.nixosModules.lanzaboote
|
lanzaboote.nixosModules.lanzaboote
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
|
@ -63,10 +66,11 @@
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.youwen = {
|
home-manager.users.youwen = {
|
||||||
imports = [
|
imports = [
|
||||||
./users/youwen/linux/desktop
|
# ./users/youwen/linux/linux-home.nix
|
||||||
./users/youwen/linux/packages/x86_64
|
./users/youwen/linux/desktop.nix
|
||||||
./users/youwen/linux/programs
|
./users/youwen/linux/programs.nix
|
||||||
./users/youwen/common
|
./users/youwen/common/core.nix
|
||||||
|
./users/youwen/linux/catppuccin.nix
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -92,9 +96,9 @@
|
||||||
home-manager.backupFileExtension = "backup";
|
home-manager.backupFileExtension = "backup";
|
||||||
home-manager.users.youwen = {
|
home-manager.users.youwen = {
|
||||||
imports = [
|
imports = [
|
||||||
./users/youwen/common
|
./users/youwen/common
|
||||||
./users/youwen/linux/laptop
|
./users/youwen/linux/laptop
|
||||||
./users/youwen/linux/packages/aarch-64
|
./users/youwen/linux/packages/aarch-64
|
||||||
|
|
||||||
inputs.catppuccin.homeManagerModules.catppuccin
|
inputs.catppuccin.homeManagerModules.catppuccin
|
||||||
];
|
];
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
options hid_apple iso_layout=0
|
options hid_apple iso_layout=0
|
||||||
'';
|
'';
|
||||||
|
|
||||||
boot.kernelParams = [ "apple_dcp.show_notch=1" ];
|
|
||||||
|
|
||||||
networking.hostName = "callisto"; # Define your hostname.
|
networking.hostName = "callisto"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
|
|
|
@ -13,22 +13,29 @@
|
||||||
boot.loader = {
|
boot.loader = {
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
timeout = 15;
|
timeout = 15;
|
||||||
# Lanzaboote currently replaces the systemd-boot module.
|
|
||||||
# This setting is usually set to true in configuration.nix
|
|
||||||
# generated at installation time. So we force it to false
|
|
||||||
# for now.
|
|
||||||
systemd-boot = {
|
systemd-boot = {
|
||||||
enable = false;
|
enable = true;
|
||||||
consoleMode = "auto";
|
consoleMode = "auto";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
# For debugging and troubleshooting Secure Boot.
|
||||||
|
pkgs.sbctl
|
||||||
|
];
|
||||||
|
|
||||||
|
# Lanzaboote currently replaces the systemd-boot module.
|
||||||
|
# This setting is usually set to true in configuration.nix
|
||||||
|
# generated at installation time. So we force it to false
|
||||||
|
# for now.
|
||||||
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||||
|
|
||||||
boot.lanzaboote = {
|
boot.lanzaboote = {
|
||||||
enable = true;
|
enable = true;
|
||||||
pkiBundle = "/etc/secureboot";
|
pkiBundle = "/etc/secureboot";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hostName = "demeter"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||||
|
|
||||||
# select kernel
|
# select kernel
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
{ imports = [ ./core.nix ]; }
|
{
|
||||||
|
imports = [ ./core.nix ];
|
||||||
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
# xxx
|
# xxx
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
home.file.".config/neofetch/config.conf".source = ../common/neofetch.conf;
|
home.file.".config/neofetch/config.conf".source = ../common/neofetch.conf
|
||||||
|
|
||||||
# Packages that should be installed to the user profile.
|
# Packages that should be installed to the user profile.
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -1,10 +1,4 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ ../theming ../home.nix ../programs ../hyprland/desktop ../waybar ];
|
||||||
../theming
|
|
||||||
../home.nix
|
|
||||||
../programs
|
|
||||||
../hyprland/desktop
|
|
||||||
../waybar/desktop
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
{ imports = [ ../common.nix ]; }
|
{
|
||||||
|
imports = [ ../common.nix ./desktop-only.nix ];
|
||||||
|
}
|
||||||
|
|
1
users/youwen/linux/hyprland/desktop/desktop-only.nix
Normal file
1
users/youwen/linux/hyprland/desktop/desktop-only.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ }
|
|
@ -1,18 +1,3 @@
|
||||||
{ lib, ... }:
|
|
||||||
{
|
{
|
||||||
imports = [ ../common.nix ];
|
imports = [ ../common.nix ./laptop-only.nix ];
|
||||||
wayland.windowManager.hyprland.settings.input.touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
disable_while_typing = true;
|
|
||||||
clickfinger_behavior = true;
|
|
||||||
tap-to-click = false;
|
|
||||||
scroll_factor = 0.5;
|
|
||||||
};
|
|
||||||
wayland.windowManager.hyprland.settings.general.sensitivity = lib.mkForce 1.0;
|
|
||||||
wayland.windowManager.hyprland.settings.env = [
|
|
||||||
"HYPRCURSOR_THEME,Bibata-Modern-Ice"
|
|
||||||
"HYPRCURSOR_SIZE,24"
|
|
||||||
"XCURSOR_THEME,Bibata-Modern-Ice"
|
|
||||||
"XCURSOR_SIZE,24"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
1
users/youwen/linux/hyprland/laptop/laptop-only.nix
Normal file
1
users/youwen/linux/hyprland/laptop/laptop-only.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ }
|
|
@ -1,5 +1,4 @@
|
||||||
{
|
{
|
||||||
imports =
|
imports = [ ../theming ../home.nix ../programs ../hyprland/laptop ../waybar ];
|
||||||
[ ../theming ../home.nix ../programs ../hyprland/laptop ../waybar/laptop ];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,50 +1,49 @@
|
||||||
pkgs:
|
pkgs: with pkgs; [
|
||||||
with pkgs; [
|
neofetch
|
||||||
neofetch
|
|
||||||
|
|
||||||
# archives
|
# archives
|
||||||
zip
|
zip
|
||||||
xz
|
xz
|
||||||
unzip
|
unzip
|
||||||
p7zip
|
p7zip
|
||||||
|
|
||||||
# utils
|
# utils
|
||||||
nurl # helps fetch git data for nixpkgs
|
nurl # helps fetch git data for nixpkgs
|
||||||
|
|
||||||
# nix related
|
# nix related
|
||||||
#
|
#
|
||||||
# it provides the command `nom` works just like `nix`
|
# it provides the command `nom` works just like `nix`
|
||||||
# with more details log output
|
# with more details log output
|
||||||
nix-output-monitor
|
nix-output-monitor
|
||||||
|
|
||||||
# system tools
|
# system tools
|
||||||
pciutils # lspci
|
pciutils # lspci
|
||||||
usbutils # lsusb
|
usbutils # lsusb
|
||||||
|
|
||||||
# desktop utils
|
# desktop utils
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
swappy
|
swappy
|
||||||
pavucontrol
|
pavucontrol
|
||||||
swww
|
swww
|
||||||
waypaper
|
waypaper
|
||||||
|
|
||||||
# desktop apps
|
# desktop apps
|
||||||
dolphin
|
dolphin
|
||||||
thunderbird
|
thunderbird
|
||||||
vesktop
|
vesktop
|
||||||
signal-desktop
|
signal-desktop
|
||||||
|
|
||||||
# dev tools
|
# dev tools
|
||||||
nodePackages_latest.pnpm
|
nodePackages_latest.pnpm
|
||||||
rustfmt
|
rustfmt
|
||||||
rust-analyzer
|
rust-analyzer
|
||||||
|
|
||||||
# desktop ricing
|
# desktop ricing
|
||||||
bibata-cursors
|
bibata-cursors
|
||||||
libsForQt5.qtstyleplugin-kvantum
|
libsForQt5.qtstyleplugin-kvantum
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
papirus-icon-theme
|
papirus-icon-theme
|
||||||
libsForQt5.qt5ct
|
libsForQt5.qt5ct
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let createCommon = import ../common-packages.nix;
|
let createCommon = import ../common-packages.nix;
|
||||||
in {
|
in { home.packages = ((createCommon pkgs) ++ with pkgs; [
|
||||||
home.packages = ((createCommon pkgs) ++ (with pkgs; [
|
spotify
|
||||||
spotify
|
bitwarden-desktop
|
||||||
bitwarden-desktop
|
modrinth-app
|
||||||
modrinth-app
|
lutris
|
||||||
lutris
|
wine
|
||||||
wine
|
]);
|
||||||
sbctl
|
|
||||||
]));
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ pkgs, ... }: {
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
imports = [ ./catppuccin.nix ];
|
imports = [ ./catppuccin.nix ];
|
||||||
|
|
||||||
gtk = {
|
gtk = {
|
||||||
|
|
|
@ -1,93 +0,0 @@
|
||||||
{
|
|
||||||
programs.waybar = {
|
|
||||||
enable = true;
|
|
||||||
settings = {
|
|
||||||
mainBar = {
|
|
||||||
layer = "top";
|
|
||||||
position = "top";
|
|
||||||
height = 24;
|
|
||||||
# width = 1000;
|
|
||||||
reload-style-on-change = true;
|
|
||||||
margin = "5px 0px 0px 0px";
|
|
||||||
modules-left =
|
|
||||||
[ "hyprland/window" "hyprland/workspaces" "network" "clock" ];
|
|
||||||
modules-right =
|
|
||||||
[ "group/hardware" "backlight" "group/adjustable" "custom/weather" ];
|
|
||||||
# modules-center = [ "network" "group/hardware" "clock" ];
|
|
||||||
"hyprland/workspaces" = {
|
|
||||||
active-only = false;
|
|
||||||
all-outputs = false;
|
|
||||||
format = "{icon}";
|
|
||||||
persistent-workspaces = {
|
|
||||||
eDP-1 = [ 1 ];
|
|
||||||
DP-1 = [ 2 3 4 5 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
"group/hardware" = {
|
|
||||||
orientation = "inherit";
|
|
||||||
modules = [ "cpu" "battery" ];
|
|
||||||
};
|
|
||||||
"group/adjustable" = {
|
|
||||||
orientation = "inherit";
|
|
||||||
drawer = {
|
|
||||||
transition-duration = 500;
|
|
||||||
transition-left-to-right = true;
|
|
||||||
};
|
|
||||||
modules = [ "pulseaudio" "mpris" ];
|
|
||||||
};
|
|
||||||
"custom/weather" = {
|
|
||||||
orientation = "horizontal";
|
|
||||||
exec = ''curl wttr.in/?format="%l:%20%t"'';
|
|
||||||
interval = 10;
|
|
||||||
};
|
|
||||||
cpu = {
|
|
||||||
interval = 10;
|
|
||||||
format = "{usage}% ";
|
|
||||||
};
|
|
||||||
memory = {
|
|
||||||
interval = 10;
|
|
||||||
format = "{percentage}% ";
|
|
||||||
};
|
|
||||||
# mpris = {
|
|
||||||
# format-playing = " {title} ";
|
|
||||||
# format-paused = " {title} ";
|
|
||||||
# format-stopped = "Nothing Playing";
|
|
||||||
# };
|
|
||||||
tray = { spacing = 10; };
|
|
||||||
clock = { format = "{:%a %b %d, %I:%M %p} "; };
|
|
||||||
backlight = {
|
|
||||||
device = "intel_backlight";
|
|
||||||
format = "{percent}% {icon}";
|
|
||||||
format-icons = [ "" "" ];
|
|
||||||
};
|
|
||||||
battery = {
|
|
||||||
states = {
|
|
||||||
good = 95;
|
|
||||||
warning = 20;
|
|
||||||
critical = 10;
|
|
||||||
};
|
|
||||||
format = "{capacity}% {icon}";
|
|
||||||
format-icons = [ "" "" "" "" "" ];
|
|
||||||
};
|
|
||||||
"hyprland/window" = { format = "{class}"; };
|
|
||||||
network = {
|
|
||||||
format-wifi = "{essid} ";
|
|
||||||
format-linked = "{ifname} (No IP) ";
|
|
||||||
format-disconnected = "Disconnected ⚠";
|
|
||||||
format-alt = "{ifname}: {ipaddr}/{cidr}";
|
|
||||||
};
|
|
||||||
pulseaudio = {
|
|
||||||
format = "{volume}% {icon} {format_source}";
|
|
||||||
format-bluetooth = "{volume}% {icon} {format_source}";
|
|
||||||
format-bluetooth-muted = " {icon} {format_source}";
|
|
||||||
format-muted = " {format_source}";
|
|
||||||
format-source = "{volume}% ";
|
|
||||||
format-source-muted = "";
|
|
||||||
format-icons = { default = [ "" "" "" ]; };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
style = ./waybar.css;
|
|
||||||
systemd.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,108 +0,0 @@
|
||||||
* {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
window#waybar {
|
|
||||||
border-bottom: 0px solid #ffffff;
|
|
||||||
background: transparent;
|
|
||||||
transition-property: none;
|
|
||||||
transition-duration: 0s;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces {
|
|
||||||
background: #24273a;
|
|
||||||
padding: 0px 5px 0px 5px;
|
|
||||||
margin: 0px 0px 0px 2px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces {
|
|
||||||
background: #24273a;
|
|
||||||
padding: 0px 5px 0px 5px;
|
|
||||||
margin: 0px 0px 0px 2px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button,
|
|
||||||
#workspaces button:hover {
|
|
||||||
padding: 0;
|
|
||||||
background-color: #24273a;
|
|
||||||
/* color: @color4; */
|
|
||||||
}
|
|
||||||
#workspaces button.active,
|
|
||||||
#workspaces button:hover {
|
|
||||||
/* color: @color8; */
|
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#pulseaudio,
|
|
||||||
#network,
|
|
||||||
#battery,
|
|
||||||
#tray,
|
|
||||||
#mpris,
|
|
||||||
#cpu,
|
|
||||||
#memory,
|
|
||||||
#temperature,
|
|
||||||
#custom-weather,
|
|
||||||
#window,
|
|
||||||
#backlight {
|
|
||||||
background-color: #24273a;
|
|
||||||
/* color: @color4; */
|
|
||||||
opacity: 1;
|
|
||||||
border-radius: 5px;
|
|
||||||
padding: 1px 10px 1px 10px;
|
|
||||||
margin: 0px 5px 0px 0px;
|
|
||||||
}
|
|
||||||
#backlight {
|
|
||||||
margin-right: 0px;
|
|
||||||
padding-right: 3px;
|
|
||||||
border-top-right-radius: 0px;
|
|
||||||
border-bottom-right-radius: 0px;
|
|
||||||
}
|
|
||||||
#network {
|
|
||||||
margin-left: 15px;
|
|
||||||
padding-right: 15px;
|
|
||||||
}
|
|
||||||
#mpris {
|
|
||||||
padding-left: 0px;
|
|
||||||
margin-left: 0px;
|
|
||||||
margin-right: 5px;
|
|
||||||
padding-right: 0px;
|
|
||||||
}
|
|
||||||
#pulseaudio {
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
margin-left: 0px;
|
|
||||||
margin-right: 5px;
|
|
||||||
border-top-left-radius: 0px;
|
|
||||||
border-bottom-left-radius: 0px;
|
|
||||||
}
|
|
||||||
#memory,
|
|
||||||
#cpu {
|
|
||||||
padding-right: 2px;
|
|
||||||
border-top-right-radius: 0px;
|
|
||||||
border-bottom-right-radius: 0px;
|
|
||||||
border-right-width: 0px;
|
|
||||||
}
|
|
||||||
#memory,
|
|
||||||
#battery {
|
|
||||||
margin-left: 0px;
|
|
||||||
padding-left: 2px;
|
|
||||||
border-top-left-radius: 0px;
|
|
||||||
border-bottom-left-radius: 0px;
|
|
||||||
border-left-width: 0px;
|
|
||||||
}
|
|
||||||
#cpu {
|
|
||||||
margin-right: 0px;
|
|
||||||
}
|
|
||||||
#battery {
|
|
||||||
padding-right: 13px;
|
|
||||||
}
|
|
||||||
#custom-weather {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
margin-right: 10px;
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
Loading…
Reference in a new issue