Changed a lot of things
This commit is contained in:
parent
d60f246610
commit
0495eb84c2
|
|
@ -9,6 +9,11 @@
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
################################################
|
||||||
|
# SECTION 1: BASIC SYSTEM SOFTWARE CONFIGURATION
|
||||||
|
################################################
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
@ -16,7 +21,6 @@
|
||||||
|
|
||||||
# Enable flakes.
|
# Enable flakes.
|
||||||
nix = {
|
nix = {
|
||||||
# package = pkgs.nixFlakes; # Ask Katie what that does
|
|
||||||
settings.experimental-features = [ "nix-command" "flakes" ];
|
settings.experimental-features = [ "nix-command" "flakes" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -50,6 +54,10 @@
|
||||||
config.common.default = "*";
|
config.common.default = "*";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
###################################
|
||||||
|
# SECTION 2: HARDWARE CONFIGURATION
|
||||||
|
###################################
|
||||||
|
|
||||||
# Set login and power management options
|
# Set login and power management options
|
||||||
services.logind.lidSwitch = "suspend";
|
services.logind.lidSwitch = "suspend";
|
||||||
services.logind.lidSwitchDocked = "ignore"; # when an external monitor is plugged in
|
services.logind.lidSwitchDocked = "ignore"; # when an external monitor is plugged in
|
||||||
|
|
@ -82,7 +90,11 @@
|
||||||
|
|
||||||
# Enable Bluetooth.
|
# Enable Bluetooth.
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
|
|
||||||
|
###################################################
|
||||||
|
# SECTION 3: USERSPACE CONFIG AND OPTIONAL SOFTWARE
|
||||||
|
###################################################
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.alice = {
|
users.users.alice = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|
@ -100,18 +112,32 @@
|
||||||
InhibitDelayMaxSec=5
|
InhibitDelayMaxSec=5
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# Allow steam to run nonfree
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
|
||||||
|
"steam" "steam-original" "steam-run"
|
||||||
|
];
|
||||||
|
|
||||||
# List packages installed in system profile. To search, run:
|
# List packages installed in system profile. To search, run:
|
||||||
# $ nix search wget
|
# $ nix search wget
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
xdg-terminal-exec.defaultPackage
|
|
||||||
neovim
|
neovim
|
||||||
git
|
git
|
||||||
gay # very important, do not remove
|
gay # very important, do not remove
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Add Steam, which cannot be installed through home manager (boo!)
|
||||||
|
programs.steam = {
|
||||||
|
enable = true;
|
||||||
|
remotePlay.openFirewall = true; # Open ports in the firewall for Remote Play
|
||||||
|
# dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||||
|
};
|
||||||
|
|
||||||
# Enable dconf; necessary for some programs
|
# Enable dconf; necessary for some programs
|
||||||
programs.dconf.enable = true;
|
programs.dconf.enable = true;
|
||||||
|
|
||||||
|
# Enable gvfs; handles trash
|
||||||
|
services.gvfs.enable = true;
|
||||||
|
|
||||||
# Some programs need SUID wrappers, can be configured further or are
|
# Some programs need SUID wrappers, can be configured further or are
|
||||||
# started in user sessions.
|
# started in user sessions.
|
||||||
# programs.mtr.enable = true;
|
# programs.mtr.enable = true;
|
||||||
|
|
|
||||||
12
flake.lock
12
flake.lock
|
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704383912,
|
"lastModified": 1704498488,
|
||||||
"narHash": "sha256-Be7O73qoOj/z+4ZCgizdLlu+5BkVvO2KO299goZ9cW8=",
|
"narHash": "sha256-yINKdShHrtjdiJhov+q0s3Y3B830ujRoSbHduUNyKag=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "26b8adb300e50efceb51fff6859a1a6ba1ade4f7",
|
"rev": "51e44a13acea71b36245e8bd8c7db53e0a3e61ee",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -22,11 +22,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1704194953,
|
"lastModified": 1704538339,
|
||||||
"narHash": "sha256-RtDKd8Mynhe5CFnVT8s0/0yqtWFMM9LmCzXv/YKxnq4=",
|
"narHash": "sha256-1734d3mQuux9ySvwf6axRWZRBhtcZA9Q8eftD6EZg6U=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "bd645e8668ec6612439a9ee7e71f7eac4099d4f6",
|
"rev": "46ae0210ce163b3cba6c7da08840c1d63de9c701",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
15
flake.nix
15
flake.nix
|
|
@ -3,10 +3,10 @@
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
xdg-terminal-exec = {
|
# xdg-terminal-exec = {
|
||||||
url = "path:./xdg-terminal-exec";
|
# url = "path:/etc/nixos/flakes/xdg-terminal-exec";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
# inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
# };
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager";
|
url = "github:nix-community/home-manager";
|
||||||
|
|
@ -15,16 +15,19 @@
|
||||||
|
|
||||||
# nur.url = "github:nix-community/NUR";
|
# nur.url = "github:nix-community/NUR";
|
||||||
};
|
};
|
||||||
outputs = { self, nixpkgs, home-manager, xdg-terminal-exec }:
|
outputs = { self, nixpkgs, home-manager }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
# overlays = [ (final: prev: { xdgTerminalExec = xdg-terminal-exec.defaultPackage; }) ];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
oyvoLaptop = nixpkgs.lib.nixosSystem {
|
oyvoLaptop = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
_module.args = { inherit xdg-terminal-exec; };
|
|
||||||
modules = [
|
modules = [
|
||||||
|
# ({pkgs, ...}: {
|
||||||
|
# nixpkgs.overlays = overlays;
|
||||||
|
# })
|
||||||
./configuration.nix
|
./configuration.nix
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
# nur.nixosModules.nur
|
# nur.nixosModules.nur
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
description = "A very basic flake";
|
description = "A very basic flake for building xdg-terminal-exec";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }: {
|
outputs = { self, nixpkgs }: {
|
||||||
|
|
||||||
packages.x86_64-linux.xdg-terminal-exec = nixpkgs.legacyPackages.x86_64-linux.xdg-terminal-exec;
|
packages.x86_64-linux.xdg-terminal-exec = import ./xdg-terminal-exec.nix (import <nixpkgs>);
|
||||||
|
|
||||||
packages.x86_64-linux.default = self.packages.x86_64-linux.xdg-terminal-exec;
|
packages.x86_64-linux.default = self.packages.x86_64-linux.xdg-terminal-exec;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
let
|
{ pkgs }:
|
||||||
pkgs = import <nixpkgs> {};
|
|
||||||
in
|
|
||||||
pkgs.stdenv.mkDerivation {
|
pkgs.stdenv.mkDerivation {
|
||||||
name = "xdg-terminal-exec";
|
name = "xdg-terminal-exec";
|
||||||
builder = "${pkgs.bash}/bin/bash";
|
builder = "${pkgs.bash}/bin/bash";
|
||||||
|
|
|
||||||
18
home.nix
18
home.nix
|
|
@ -5,14 +5,24 @@
|
||||||
home.homeDirectory = "/home/alice";
|
home.homeDirectory = "/home/alice";
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
|
# Configure cursor
|
||||||
|
# home.pointerCursor = {
|
||||||
|
# package = pkgs.vanilla-dmz;
|
||||||
|
# name = "Vanilla-DMZ";
|
||||||
|
# size = 64;
|
||||||
|
# };
|
||||||
|
|
||||||
|
# Install packages
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[ texliveFull ] ++ # TeX distribution
|
[ texliveFull ] ++ # TeX distribution
|
||||||
|
[ bitwarden-cli ] ++ # Personalized selection of command-line (CLI/TUI) apps
|
||||||
[ kitty ] ++ # Terminal emulator
|
[ kitty ] ++ # Terminal emulator
|
||||||
[ firefox cinnamon.nemo gnome.file-roller cinnamon.nemo-fileroller pavucontrol ] ++ # Basic graphical apps
|
[ firefox cinnamon.nemo gnome.file-roller cinnamon.nemo-fileroller vlc pavucontrol ] ++ # Basic graphical apps
|
||||||
[ signal-desktop prismlauncher ] ++ # Personalized selection of graphical apps
|
[ libreoffice signal-desktop prismlauncher apostrophe ] ++ # Personalized selection of graphical apps
|
||||||
[ bemenu j4-dmenu-desktop ] ++ # Sway-related packages
|
[ bemenu j4-dmenu-desktop ] ++ # Sway-related packages
|
||||||
[ noto-fonts redhat-official-fonts overpass ]; # Fonts
|
[ noto-fonts redhat-official-fonts overpass ]; # Fonts
|
||||||
|
# [ vanilla-dmz ]; # Cursor
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|
@ -34,7 +44,7 @@
|
||||||
programs.swaylock = {
|
programs.swaylock = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
font-size = 11;
|
font-size = 14;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
|
|
|
||||||
5
todo
5
todo
|
|
@ -1,5 +1,8 @@
|
||||||
enable NUR and firefox extensions
|
enable NUR and firefox extensions
|
||||||
split app configs off into separate files
|
split app configs off into separate files
|
||||||
fix editor issue!!!
|
|
||||||
switch to zsh
|
switch to zsh
|
||||||
fix brightness switching as non root
|
fix brightness switching as non root
|
||||||
|
set up a keyring and store networkmanager wifi passwords in there instead of plain text
|
||||||
|
fnott: notifications
|
||||||
|
neovim and vimtex config
|
||||||
|
set up screenshots
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
style = "Regular";
|
style = "Regular";
|
||||||
size = 12.0;
|
size = 12.0;
|
||||||
};
|
};
|
||||||
input = { "type:touchpad" = { natural_scroll = "enabled"; }; };
|
input = { "type:touchpad" = { natural_scroll = "disabled"; }; };
|
||||||
bars = let config = config; in [{
|
bars = let config = config; in [{
|
||||||
position = "top";
|
position = "top";
|
||||||
inherit fonts;
|
inherit fonts;
|
||||||
|
|
@ -29,7 +29,6 @@
|
||||||
'' + # Fractional scaling to 1.50
|
'' + # Fractional scaling to 1.50
|
||||||
''
|
''
|
||||||
input type:touchpad {
|
input type:touchpad {
|
||||||
natural_scroll disabled
|
|
||||||
dwt disabled
|
dwt disabled
|
||||||
click_method clickfinger
|
click_method clickfinger
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue