Compare commits

..

2 Commits

10 changed files with 96 additions and 131 deletions

View File

@@ -23,6 +23,7 @@
}]; }];
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
hardware.enableAllFirmware = true;
# networking.hostName = "nixos"; # Define your hostname. # networking.hostName = "nixos"; # Define your hostname.
# Pick only one of the below networking options. # Pick only one of the below networking options.
@@ -103,6 +104,9 @@
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;
# Block list
networking.stevenblack.enable = true;
# Copy the NixOS configuration file and link it from the resulting system # Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you # (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix. # accidentally delete configuration.nix.

View File

@@ -2,18 +2,15 @@
{ {
imports = [ imports = [
../../home-manager/fonts.nix ../../home-manager/base.nix
../../home-manager/terminal.nix
../../home-manager/gaming.nix ../../home-manager/gaming.nix
../../home-manager/firefox/firefox.nix
../../home-manager/development/vscode.nix ../../home-manager/development/vscode.nix
]; ];
terminal.homeUpdateLocation = "/home/deck/Projects/nixos#deck"; terminal.homeUpdateLocation = "/home/deck/Projects/nixos#deck";
terminal.flakeUpdateLocation = "/home/deck/Projects/nixos"; terminal.flakeUpdateLocation = "/home/deck/Projects/nixos";
nixpkgs.config = nixpkgs.config = {
{
allowUnfree = true; allowUnfree = true;
}; };
@@ -22,24 +19,7 @@
home.stateVersion = "24.05"; home.stateVersion = "24.05";
home.packages = with pkgs;[ ];
home.packages = with pkgs;[
# general
thunderbird
keepassxc
qbittorrent
libreoffice-qt
joplin-desktop
obsidian
# media
strawberry-qt6
jellyfin-media-player
# comms
teamspeak_client
vesktop
];
home.file = { home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in # # Building this configuration will create a copy of 'dotfiles/screenrc' in
@@ -53,17 +33,4 @@
# org.gradle.daemon.idletimeout=3600000 # org.gradle.daemon.idletimeout=3600000
# ''; # '';
}; };
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
programs = {
home-manager.enable = true;
};
} }

View File

@@ -2,9 +2,7 @@
{ {
imports = [ imports = [
../../home-manager/fonts.nix ../../home-manager/base.nix
../../home-manager/terminal.nix
../../home-manager/firefox/firefox.nix
../../home-manager/development/vscode.nix ../../home-manager/development/vscode.nix
]; ];
@@ -16,23 +14,7 @@
home.stateVersion = "24.05"; home.stateVersion = "24.05";
home.packages = with pkgs;[ home.packages = with pkgs;[ ];
# general
thunderbird
keepassxc
qbittorrent
libreoffice-qt
joplin-desktop
obsidian
# media
strawberry-qt6
jellyfin-media-player
# comms
teamspeak_client
vesktop
];
home.file = { home.file = {
# # Building this configuration will create a copy of 'dotfiles/screenrc' in # # Building this configuration will create a copy of 'dotfiles/screenrc' in
@@ -46,31 +28,4 @@
# org.gradle.daemon.idletimeout=3600000 # org.gradle.daemon.idletimeout=3600000
# ''; # '';
}; };
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
# Let Home Manager install and manage itself.
programs = {
home-manager.enable = true;
chromium = {
enable = true;
package = pkgs.brave;
};
mpv = {
enable = true;
config = {
screenshot-directory = "~/Pictures/";
screenshot-template = "%F/%F_snapshot_%P";
};
};
};
} }

View File

@@ -20,6 +20,10 @@
networking.hostName = "tuxedo"; # Define your hostname. networking.hostName = "tuxedo"; # Define your hostname.
boot.extraModprobeConfig = ''
options iwlwifi 11n_disable=1
'';
fileSystems."/mnt/HDD1" = { fileSystems."/mnt/HDD1" = {
#device = "/dev/disk/by-uuid/35763dc3-c736-4714-ade7-40bf49ad50dd"; #device = "/dev/disk/by-uuid/35763dc3-c736-4714-ade7-40bf49ad50dd";
fsType = "ext4"; fsType = "ext4";

View File

@@ -2,9 +2,7 @@
{ {
imports = [ imports = [
../../home-manager/fonts.nix ../../home-manager/base.nix
../../home-manager/terminal.nix
../../home-manager/firefox/firefox.nix
../../home-manager/development/all.nix ../../home-manager/development/all.nix
../../home-manager/gaming.nix ../../home-manager/gaming.nix
]; ];
@@ -20,13 +18,8 @@
home.packages = with pkgs;[ home.packages = with pkgs;[
# general # general
thunderbird
keepassxc
qbittorrent
gimp-with-plugins gimp-with-plugins
joplin-desktop
obsidian obsidian
libreoffice-qt
# cmd line tools # cmd line tools
rclone rclone
@@ -35,14 +28,12 @@
ffmpeg-full ffmpeg-full
# comms # comms
teamspeak_client
vesktop
teams-for-linux teams-for-linux
# media # media
strawberry-qt6
jellyfin-media-player jellyfin-media-player
haruna haruna
fooyin
# misc # misc
electrum electrum
@@ -62,19 +53,8 @@
# ''; # '';
}; };
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
programs = { programs = {
home-manager.enable = true;
firefox = { firefox = {
profiles.work = import ../../home-manager/firefox/firefox-profile.nix // { profiles.work = import ../../home-manager/firefox/firefox-profile.nix // {
id = 1; id = 1;
@@ -89,11 +69,6 @@
}; };
}; };
chromium = {
enable = true;
package = pkgs.brave;
};
# install the shaders from anime4k directory for this to work # install the shaders from anime4k directory for this to work
mpv = { mpv = {
enable = true; enable = true;
@@ -110,7 +85,6 @@
mangohud = { mangohud = {
enable = true; enable = true;
enableSessionWide = true;
settings = { settings = {
preset = 1; preset = 1;
}; };

35
flake.lock generated
View File

@@ -82,11 +82,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1738892952, "lastModified": 1739238493,
"narHash": "sha256-1mDXsXvUV+PNJHJ51HPtkbGEGwAfZVNmxtWC5OQ64h4=", "narHash": "sha256-rk89UVGqLwts2c05TMpigB+zL2mhIYn33YUC69v7dxk=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-vscode-extensions", "repo": "nix-vscode-extensions",
"rev": "5cbce56ae7ae89025ae7b149f2ee2bc994dd31e9", "rev": "eca81883cfad1f52a52d09025d10f5907200ea06",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -95,6 +95,22 @@
"type": "github" "type": "github"
} }
}, },
"nixos-hardware": {
"locked": {
"lastModified": 1738816619,
"narHash": "sha256-5yRlg48XmpcX5b5HesdGMOte+YuCy9rzQkJz+imcu6I=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "2eccff41bab80839b1d25b303b53d339fbb07087",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "master",
"repo": "nixos-hardware",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1713805509, "lastModified": 1713805509,
@@ -113,11 +129,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1738824222, "lastModified": 1739020877,
"narHash": "sha256-U3SNq+waitGIotmgg/Et3J7o4NvUtP2gb2VhME5QXiw=", "narHash": "sha256-mIvECo/NNdJJ/bXjNqIh8yeoSjVLAuDuTUzAo7dzs8Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "550e11f27ba790351d390d9eca3b80ad0f0254e7", "rev": "a79cfe0ebd24952b580b1cf08cd906354996d547",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -129,11 +145,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1738843498, "lastModified": 1739206421,
"narHash": "sha256-7x+Q4xgFj9UxZZO9aUDCR8h4vyYut4zPUvfj3i+jBHE=", "narHash": "sha256-PwQASeL2cGVmrtQYlrBur0U20Xy07uSWVnFup2PHnDs=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "f5a32fa27df91dfc4b762671a0e0a859a8a0058f", "rev": "44534bc021b85c8d78e465021e21f33b856e2540",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -148,6 +164,7 @@
"disko": "disko", "disko": "disko",
"home-manager": "home-manager", "home-manager": "home-manager",
"nix-vscode-extensions": "nix-vscode-extensions", "nix-vscode-extensions": "nix-vscode-extensions",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable" "nixpkgs-unstable": "nixpkgs-unstable"
} }

View File

@@ -2,6 +2,7 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = { home-manager = {
url = "github:nix-community/home-manager/release-24.11"; url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -13,7 +14,7 @@
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions"; nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
}; };
outputs = { self, nixpkgs, home-manager, ... }@inputs: outputs = { self, nixpkgs, nixos-hardware, home-manager, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@@ -28,19 +29,14 @@
nixosConfigurations.starlite = nixpkgs.lib.nixosSystem { nixosConfigurations.starlite = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
modules = [ modules = [
nixos-hardware.nixosModules.starlabs-starlite-i5
./devices/starlite/configuration.nix ./devices/starlite/configuration.nix
]; ];
}; };
packages.${system}.homeConfigurations.deck = home-manager.lib.homeManagerConfiguration { packages.${system}.homeConfigurations.deck = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = { inherit inputs; }; extraSpecialArgs = { inherit inputs; };
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [ ./devices/deck/home.nix ]; modules = [ ./devices/deck/home.nix ];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
}; };
}; };
} }

48
home-manager/base.nix Normal file
View File

@@ -0,0 +1,48 @@
{ pkgs, ... }:
{
imports = [
./fonts.nix
./terminal.nix
./firefox/firefox.nix
];
home.packages = with pkgs;[
# general
thunderbird
keepassxc
qbittorrent
libreoffice-qt
joplin-desktop
# comms
teamspeak_client
vesktop
];
home.sessionVariables = {
NIXOS_OZONE_WL = "1";
};
services.nextcloud-client = {
enable = true;
startInBackground = true;
};
programs = {
home-manager.enable = true;
chromium = {
enable = true;
package = pkgs.brave;
};
mpv = {
enable = true;
config = {
screenshot-directory = "~/Pictures/";
screenshot-template = "%F/%F_snapshot_%P";
};
};
};
}

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { ... }:
{ {
imports = [ imports = [

View File

@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }: { pkgs, ... }:
{ {
home.packages = with pkgs;[ home.packages = with pkgs;[